]> SALOME platform Git repositories - tools/siman.git/blob
Salome HOME
825d5a9918f71c7485c756fc8bd04a36e6541f00
[tools/siman.git] /
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE log4j:configuration PUBLIC "-//log4j/log4j Configuration//EN" "../WebContent/META-INF/dtds/log4j.dtd">
3
4 <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
5         <!-- Generated at @datesimple@ @time@ -->
6         <!-- @file.header@ -->
7     <appender name="console" class="org.apache.log4j.ConsoleAppender">
8         <layout class="org.apache.log4j.PatternLayout"> 
9             <param name="ConversionPattern" value="[%t] %-5p %-11c{1} - %m%n"/> 
10         </layout> 
11     </appender>
12     
13     <appender name="logfile" class="org.apache.log4j.RollingFileAppender">
14         <param name="File"           value="${catalina.home}/logs/siman.log" />
15         <param name="MaxFileSize"    value="500KB" />
16         <param name="MaxBackupIndex" value="10" />
17         <param name="Append" value="false" />
18         <layout class="org.apache.log4j.PatternLayout"> 
19             <param name="ConversionPattern" value="[%t] %-5p %-11c{1} - %m%n"/>             
20         </layout> 
21     </appender>
22  
23     <!-- specify the logging level for loggers from other libraries -->
24     <logger name="com.opensymphony">
25         <level value="@com.opensymphony.logger.level@" />
26     </logger>
27
28     <logger name="org.apache.struts2">
29         <level value="@org.apache.struts2.logger.level@" />
30     </logger>
31
32     <logger name="org.springframework">
33         <level value="@org.springframework.logger.level@" />
34     </logger>
35
36     <logger name="org.hibernate">
37         <level value="@org.hibernate.logger.level@" />
38     </logger>
39
40     <logger name="org.splat.siman">
41         <level value="@org.splat.siman.logger.level@" />
42     </logger>
43   
44     <logger name="log4j.logger.org.hibernate">
45         <level value="@log4j.logger.org.hibernate.logger.level@" />
46     </logger>
47
48    <!-- for all other loggers log only debug and above log messages -->
49      <root>
50         <priority value="@root.logger.level@"/> 
51         <appender-ref ref="logfile" /> 
52                 @root.logger.appender@ 
53      </root> 
54
55 </log4j:configuration>