org.mentalog.test.log4j.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of menta-log Show documentation
Show all versions of menta-log Show documentation
A log library that embraces the kiss principle.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" > <log4j:configuration> <appender name="RConsumer" class="org.apache.log4j.RollingFileAppender"> <param name="file" value="example-async.log"/> <param name="MaxFileSize" value="1000000000KB"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%p %t %c - %m%n"/> </layout> </appender> <appender name="RSync" class="org.apache.log4j.RollingFileAppender"> <param name="file" value="example-sync.log"/> <param name="MaxFileSize" value="1000000000KB"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%p %t %c - %m%n"/> </layout> </appender> <appender name="RAsync" class="org.apache.log4j.AsyncAppender"> <param name="BufferSize" value="10240"/> <appender-ref ref="RConsumer"/> </appender> <root> <priority value="debug"></priority> <!-- appender-ref ref="RSync"/ --> <appender-ref ref="RAsync"/> </root> </log4j:configuration>