123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
- <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
- <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
- <param name="encoding" value="UTF-8" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern"
- value="%p [%t] %c{1}.%M(%L) | %m%n"/>
- </layout>
- </appender>
-
- <appender name="myFile" class="org.apache.log4j.RollingFileAppender">
- <param name="File" value="/data/aviclog/superServiceConsole.log" /><!-- 设置日志输出文件名 -->
- <!-- 设置是否在重新启动服务时,在原有日志的基础添加新日志 -->
- <param name="Append" value="true" />
- <param name="MaxBackupIndex" value="10" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d %p (%c:%L)- %m%n" />
- </layout>
- </appender>
-
- <appender name="activexAppender" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="File" value="/data/aviclog/superServiceActive.log" />
- <param name="DatePattern" value="'.'yyyy-MM-dd'.log'" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern"
- value="[%d{MMdd HH:mm:ss SSS\} %-5p] [%t] %c{3\} - %m%n" />
- </layout>
- </appender>
-
- <logger name="net.sf.ehcache">
- <level value="ERROR"/>
- </logger>
- <!-- Suppress success logging from InteractiveAuthenticationSuccessEvent -->
- <logger name="org.springframework.security">
- <level value="ERROR"/>
- </logger>
- <logger name="org.apache">
- <level value="WARN"/>
- </logger>
- <logger name="org.apache.velocity">
- <level value="FATAL"/>
- </logger>
- <!-- Suppress invalid warning messages from JSF -->
- <logger name="org.apache.myfaces">
- <level value="ERROR"/>
- </logger>
- <!-- Suppress warnings from Struts -->
- <logger name="org.apache.struts2.util.TextProviderHelper">
- <level value="ERROR"/>
- </logger>
- <logger name="com.opensymphony.xwork2.util.OgnlUtil">
- <level value="ERROR"/>
- </logger>
- <logger name="com.opensymphony.xwork2.ognl.OgnlValueStack">
- <level value="ERROR"/>
- </logger>
- <logger name="org.dbunit">
- <level value="WARN"/>
- </logger>
- <logger name="org.hibernate">
- <level value="WARN"/>
- </logger>
-
- <logger name="org.hibernate.SQL">
- <level value="DEBUG"/>
- </logger>
- <logger name="org.springframework">
- <level value="WARN"/>
- </logger>
-
- <logger name="com.palmnest">
- <level value="DEBUG"/>
- </logger>
- <logger name="com.palmnest.tool">
- <level value="INFO"/>
- </logger>
- <root>
- <level value="DEBUG"/>
- <appender-ref ref="CONSOLE"/>
- </root>
-
- <!-- 根logger的设置-->
- <root>
- <priority value ="error"/>
- <appender-ref ref="myFile"/>
- <appender-ref ref="activexAppender"/>
- </root>
- </log4j:configuration>
|