1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE log4j:configuration PUBLIC "-//log4j/log4j Configuration//EN" "../WebContent/META-INF/dtds/log4j.dtd">
4 <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
6 <appender name="console" class="org.apache.log4j.ConsoleAppender">
7 <layout class="org.apache.log4j.PatternLayout">
8 <param name="ConversionPattern" value="[%t] %-5p %-11c{1} - %m%n"/>
12 <appender name="logfile" class="org.apache.log4j.RollingFileAppender">
13 <param name="File" value="${catalina.home}/logs/siman.log" />
14 <param name="MaxFileSize" value="500KB" />
15 <param name="MaxBackupIndex" value="10" />
16 <param name="Append" value="false" />
17 <layout class="org.apache.log4j.PatternLayout">
18 <param name="ConversionPattern" value="[%t] %-5p %-11c{1} - %m%n"/>
22 <!-- specify the logging level for loggers from other libraries -->
23 <logger name="com.opensymphony">
24 <level value="DEBUG" />
27 <logger name="org.apache.struts2">
28 <level value="DEBUG" />
31 <logger name="org.splat.siman">
32 <level value="DEBUG" />
35 <logger name="log4j.logger.org.hibernate">
36 <level value="DEBUG" />
39 <logger name="log4j.logger.org.hibernate.SQL">
40 <level value="DEBUG" />
43 <!-- for all other loggers log only debug and above log messages -->
45 <priority value="INFO"/>
46 <appender-ref ref="logfile" />
47 <appender-ref ref="console" />
50 </log4j:configuration>