log4j.xml
<br />< xml version="1.0" encoding="UTF-8" > <br /><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <br /><log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false" threshold="null"> <br /><br /><br /><appender class="org.apache.log4j.ConsoleAppender" name="CONSOLE"> <br /><param name="Target" value="System.out"/> <br /><param name="Threshold" value="INFO"/> <br /><layout class="org.apache.log4j.PatternLayout"> <br /><param name="ConversionPattern" value="%d [%p] - %m%n "/> <br /></layout> <br /><filter class="org.apache.log4j.varia.DenyAllFilter"/> <br /><errorHandler class="org.apache.log4j.varia. FallbackErrorHandler"/> <br /></appender> <br /><br /><appender class="org.apache.log4j.FileAppender" name="FILE"> <br /><param name="File" value="file.log"/> <br /><param name="Append" value="false"/> <br /><param name="Threshold" value="INFO"/> <br /><layout class="org.apache.log4j.PatternLayout"> <br /><param name="ConversionPattern" value="%d [%p] - %m%n "/> <br /></layout> <br /></appender> <br /><br /><appender class="org.apache.log4j.RollingFileAppender" name="ROLLING_FILE"> <br /><param name="Threshold" value="INFO"/> <br /><param name="File" value="rolling.log"/> <br /><param name="Append" value="false"/> <br /><param name="MaxFileSize" value="10KB"/> <br /><param name="MaxBackupIndex" value="1"/> <br /><layout class="org.apache.log4j.PatternLayout"> <br /><param name="ConversionPattern" value="%d [%p] - %m%n "/> <br /></layout> <br /></appender> <br /><br /><logger additivity="false" name="com.eos"> <br /><level value="info"/> <br /><appender-ref ref="CONSOLE"/> <br /></logger> <br /><br /><category additivity="true" name="com.eos.log"> <br /><priority value="warn"/> <br /></category> <br /><br /><root> <br /><priority value="info"/> <br /><appender-ref ref="CONSOLE"/> <br /></root> <br /></log4j:configuration>