nayn-ustyle-apache-logging.1.0.2.source-code.log4j.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="stderr" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${logs.dir}/error.log"/> <param name="Append" value="true"/> <param name="MaxFileSize" value="1000KB"/> <param name="MaxBackupIndex" value="2"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %p [%c] - %m%n"/> </layout> <filter class="org.apache.log4j.varia.LevelRangeFilter"> <param name="LevelMin" value="WARN" /> </filter> </appender> <appender name="stdout" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${logs.dir}/stdout.log"/> <param name="Append" value="true"/> <param name="MaxFileSize" value="1000KB"/> <param name="MaxBackupIndex" value="2"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %p [%c] - %m%n"/> </layout> <filter class="org.apache.log4j.varia.LevelRangeFilter"> <param name="LevelMin" value="INFO" /> <param name="LevelMax" value="INFO" /> </filter> </appender> <appender name="console" class="org.apache.log4j.ConsoleAppender"> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-5p [%c] - %m%n" /> </layout> </appender> <!-- ASYNC --> <appender name="async_stderr" class="org.apache.log4j.AsyncAppender"> <appender-ref ref="stderr" /> </appender> <appender name="async_console" class="org.apache.log4j.AsyncAppender"> <appender-ref ref="console" /> </appender> <root> <level value="DEBUG"/> <appender-ref ref="async_stderr" /> <appender-ref ref="async_console" /> </root> </log4j:configuration>