Home
Cloud
Big Data
CI
Install
Samples
Java
Ubuntu
Maven
Archive
mtitek-process-app-hello-web
|
log4j.xml
log4j.xml
log4j.xml
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration> <appender name="console" class="org.apache.log4j.ConsoleAppender"> <param name="Target" value="System.out" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%d{mm:ss,SSS}] %p [%c: %L] %m%n" /> </layout> </appender> <appender name="file" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="./logs/mtitek-process-app-hello.log" /> <param name="Append" value="false" /> <param name="MaxFileSize" value="20MB" /> <param name="MaxBackupIndex" value="10" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%d{yyyy-MM-dd HH:mm:ss,SSS}] %p [%c: %L] %m%n" /> </layout> <filter class="org.apache.log4j.varia.LevelRangeFilter"> <param name="LevelMin" value="ALL" /> </filter> </appender> <logger name="mtitek.process" additivity="false"> <level value="TRACE" /> <appender-ref ref="file" /> <appender-ref ref="console" /> </logger> <root> <priority value="ERROR" /> <appender-ref ref="file" /> <appender-ref ref="console" /> </root> </log4j:configuration>
© 2010-2022
mti
tek