]> SALOME platform Git repositories - tools/siman.git/blob
Salome HOME
6b149b46c64ebdb37b7ca9b16ef0189076cee4c9
[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="DEBUG" />
25     </logger>
26
27     <logger name="org.apache.struts2">
28         <level value="DEBUG" />
29     </logger>
30
31     <logger name="org.splat.siman">
32         <level value="DEBUG" />
33     </logger>
34   
35     <logger name="log4j.logger.org.hibernate">
36         <level value="DEBUG" />
37     </logger>
38
39    <!-- for all other loggers log only debug and above log messages -->
40      <root>
41         <priority value="INFO"/> 
42         <appender-ref ref="logfile" /> 
43                 <appender-ref ref="console" /> 
44      </root> 
45
46 </log4j:configuration>