Etudes/ENSIM/Java/tp1v2-dp-HERBRON_Tanguy/log4J.xml

27 lines
958 B
XML
Raw Normal View History

2019-03-08 22:34:21 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration>
<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="tp.log" />
<param name="Append" value="false" />
<param name="MaxFileSize" value="5MB"/>
<param name="MaxBackupIndex" value="2" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p %C - %m\n"/>
</layout>
</appender>
<appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d{HH:mm:ss,SSS} %-5p %C - %m\n"/>
</layout>
</appender>
<category name="fr.ensim"
additivity="false">
<level value="debug"/>
<appender-ref ref="FILE"/>
<appender-ref ref="STDOUT"/>
</category>
</log4j:configuration>