sktUtils.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="stdout" class="org.apache.log4j.ConsoleAppender"> <param name="Threshold" value="INFO"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%-5p, %m%n"/> <!-- Only use when you want very detailed INFO <param name="ConversionPattern" value="%d{dd MMM yy HH:MM:ss } - %C{1} %M - %-5p - %m%n"/> --> </layout> </appender> <appender name="R" class="org.apache.log4j.RollingFileAppender"> <param name="Threshold" value="INFO"/> <param name="file" value="./sandhi.log"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%-5p, %m%n"/> <!-- Only use when you want very detailed INFO <param name="ConversionPattern" value="%d{dd MMM yy HH:MM:ss } - %C{1} %M - %-5p - %m%n"/> --> </layout> </appender> <root> <!-- Set to trace at Production Time --> <priority value ="INFO" /> <!-- <appender-ref ref="stdout" /> <appender-ref ref="R" /> --> </root> </log4j:configuration>