private static function initVars() { if (self::$minLevelCode !== null && self::$fatalErrorMail !== null) { return; } include "settings.php"; self::$minLevelCode = self::levelCode($MinLogLevel); self::$fatalErrorMail = $FatalErrorMail; $catalog = trim($MyLogCatalog); self::$fatalLogFile = isset($MyLogDefaultFileName) ? $catalog . trim($MyLogDefaultFileName) : ''; // todo генерировать. например 1 числа текущего месяца self::$timestampFile = isset($MyLogTimestampFileName) ? $catalog . trim($MyLogTimestampFileName) : ''; }
private static function initVars() { if (self::$minLevelCode !== null && self::$fatalErrorMail !== null) { return; } include "settings.php"; self::$minLevelCode = self::levelCode($MinLogLevel); self::$fatalErrorMail = $FatalErrorMail; }