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="@com.opensymphony.logger.level@" />
27 <logger name="org.apache.struts2">
28 <level value="@org.apache.struts2.logger.level@" />
31 <logger name="org.springframework">
32 <level value="@org.springframework.logger.level@" />
35 <logger name="org.hibernate">
36 <level value="@org.hibernate.logger.level@" />
39 <logger name="org.splat.siman">
40 <level value="@org.splat.siman.logger.level@" />
43 <logger name="log4j.logger.org.hibernate">
44 <level value="@log4j.logger.org.hibernate.logger.level@" />
47 <!-- for all other loggers log only debug and above log messages -->
49 <priority value="@root.logger.level@"/>
50 <appender-ref ref="logfile" />
51 <appender-ref ref="console" />
54 </log4j:configuration>