<configuration xmlns="http://logging.apache.org/log4php/">
<appender name="myConsoleAppender" class="LoggerAppenderConsole">
<layout class="LoggerLayoutPattern">
<param name="conversionPattern" value="%date{Y-m-d H:i:s,u} [%logger](%L) %message%newline" />
</layout>
</appender>
<appender name="myAppender" class="LoggerAppenderFile">
<layout class="LoggerLayoutPattern">
<param name="conversionPattern" value="%date [%logger] %message%newline" />
</layout>
<param name="file" value="anyem.server.log" />
</appender>
<root>
<level value="INFO" />
<appender_ref ref="myAppender" />
<appender_ref ref="myConsoleAppender" />
</root>
</configuration>
|