]> SALOME platform Git repositories - tools/siman.git/blob
Salome HOME
c40fbba71a0f62c774d729df3171b57770734de9
[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     
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"/> 
9         </layout> 
10     </appender>
11     
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"/>             
19         </layout> 
20     </appender>
21  
22     <!-- specify the logging level for loggers from other libraries -->
23     <logger name="com.opensymphony">
24         <level value="@com.opensymphony.logger.level@" />
25     </logger>
26
27     <logger name="org.apache.struts2">
28         <level value="@org.apache.struts2.logger.level@" />
29     </logger>
30
31     <logger name="org.springframework">
32         <level value="@org.springframework.logger.level@" />
33     </logger>
34
35     <logger name="org.hibernate">
36         <level value="@org.hibernate.logger.level@" />
37     </logger>
38
39     <logger name="org.splat.siman">
40         <level value="@org.splat.siman.logger.level@" />
41     </logger>
42   
43     <logger name="log4j.logger.org.hibernate">
44         <level value="@log4j.logger.org.hibernate.logger.level@" />
45     </logger>
46
47    <!-- for all other loggers log only debug and above log messages -->
48      <root>
49         <priority value="@root.logger.level@"/> 
50         <appender-ref ref="logfile" /> 
51                 @root.logger.appender@ 
52      </root> 
53
54 </log4j:configuration>