Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
2.3.0
-
None
-
None
Description
Hello,
I have the following appender's configuration:
... <appender name="default" class="LoggerAppenderFile"> <layout class="LoggerLayoutPattern"> <param name="conversionPattern" value="%date{d.m.Y H:i:s,u} %logger %-5level %msg%n"/> </layout> ... </appender> ...
My code:
$log = Nmmlm_Log_Logger::getLogger($this); // this is wrapper for Logger::getLogger() ... $log->fatal("My sixth message."); // Logged because FATAL >= WARN
These are errors I have in the system log:
2012-12-12T18:46:02+00:00 ERR (3): Strict Notice: Declaration of LoggerPatternConverterDate::convert() should be compatible with that of LoggerPatternConverter::convert() in C:\path\to\lib\Log4php\pattern\LoggerPatternConverterDate.php on line 35 2012-12-12T18:46:02+00:00 ERR (3): Notice: Undefined property: LoggerFormattingInfo::$leftAlign in C:\path\to\lib\Log4php\helpers\LoggerPatternConverter.php on line 67 2012-12-12T18:46:02+00:00 ERR (3): Strict Notice: Declaration of LoggerPatternConverterLiteral::convert() should be compatible with that of LoggerPatternConverter::convert() in C:\path\to\lib\Log4php\pattern\LoggerPatternConverterLiteral.php on line 40 2012-12-12T18:46:02+00:00 ERR (3): Strict Notice: Declaration of LoggerPatternConverterLogger::convert() should be compatible with that of LoggerPatternConverter::convert() in C:\path\to\lib\Log4php\pattern\LoggerPatternConverterLogger.php on line 65 2012-12-12T18:46:02+00:00 ERR (3): Notice: Undefined property: LoggerFormattingInfo::$leftAlign in C:\path\to\lib\Log4php\helpers\LoggerPatternConverter.php on line 67 2012-12-12T18:46:02+00:00 ERR (3): Strict Notice: Declaration of LoggerPatternConverterLevel::convert() should be compatible with that of LoggerPatternConverter::convert() in C:\path\to\lib\Log4php\pattern\LoggerPatternConverterLevel.php on line 34 2012-12-12T18:46:02+00:00 ERR (3): Notice: Undefined property: LoggerFormattingInfo::$leftAlign in C:\path\to\lib\Log4php\helpers\LoggerPatternConverter.php on line 67 2012-12-12T18:46:02+00:00 ERR (3): Strict Notice: Declaration of LoggerPatternConverterMessage::convert() should be compatible with that of LoggerPatternConverter::convert() in C:\path\to\lib\Log4php\pattern\LoggerPatternConverterMessage.php on line 34 2012-12-12T18:46:02+00:00 ERR (3): Notice: Undefined property: LoggerFormattingInfo::$leftAlign in C:\path\to\lib\Log4php\helpers\LoggerPatternConverter.php on line 67 2012-12-12T18:46:02+00:00 ERR (3): Strict Notice: Declaration of LoggerPatternConverterNewLine::convert() should be compatible with that of LoggerPatternConverter::convert() in C:\path\to\lib\Log4php\pattern\LoggerPatternConverterNewLine.php on line 34 2012-12-12T18:46:02+00:00 ERR (3): Notice: Undefined property: LoggerFormattingInfo::$leftAlign in C:\path\to\lib\Log4php\helpers\LoggerPatternConverter.php on line 67 2012-12-12T18:46:02+00:00 ERR (3): Notice: Undefined property: LoggerFormattingInfo::$leftAlign in C:\path\to\lib\Log4php\helpers\LoggerPatternConverter.php on line 67 2012-12-12T18:46:02+00:00 ERR (3): Notice: Undefined property: LoggerFormattingInfo::$leftAlign in C:\path\to\lib\Log4php\helpers\LoggerPatternConverter.php on line 67 2012-12-12T18:46:02+00:00 ERR (3): Notice: Undefined property: LoggerFormattingInfo::$leftAlign in C:\path\to\lib\Log4php\helpers\LoggerPatternConverter.php on line 67 2012-12-12T18:46:02+00:00 ERR (3): Notice: Undefined property: LoggerFormattingInfo::$leftAlign in C:\path\to\lib\Log4php\helpers\LoggerPatternConverter.php on line 67 2012-12-12T18:46:02+00:00 ERR (3): Notice: Undefined property: LoggerFormattingInfo::$leftAlign in C:\path\to\lib\Log4php\helpers\LoggerPatternConverter.php on line 67
My log message is:
2012-12-12T18:46:02+00:00 Nmmlm.Log.LoggerTest FATAL My sixth message.
I cannot find smth. about $leftAlign property and just commented this line in my instance of Log4php.
Thanks,
Alex.