123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
- <log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
- <!-- <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender"> -->
- <!-- <layout class="org.apache.log4j.PatternLayout"> -->
- <!-- <param name="ConversionPattern" value="/n[%r][%p][%t] %d{HH:mm:ss,SSS} method:%l/n%m%n"/> -->
- <!-- </layout> -->
- <!-- </appender> -->
- <appender name="log.file" class="org.apache.log4j.RollingFileAppender">
- <param name="File" value="../log/userPlatform_info.log"/>
- <param name="Append" value="true" />
- <param name="MaxFileSize" value="50MB" />
- <param name="MaxBackupIndex" value="50" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d %5p %m%n"/>
- </layout>
- <filter class="org.apache.log4j.varia.LevelRangeFilter">
- <param name="LevelMin" value="INFO"/>
- <param name="LevelMax" value="INFO"/>
- </filter>
- </appender>
- <appender name="WARN" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="File" value="../log/userPlatform_warn.log"/>
- <param name="Append" value="true" />
- <param name="MaxFileSize" value="50MB" />
- <param name="MaxBackupIndex" value="20" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d %5p %m%n"/>
- </layout>
- <filter class="org.apache.log4j.varia.LevelRangeFilter">
- <param name="LevelMin" value="WARN"/>
- <param name="LevelMax" value="WARN"/>
- </filter>
- </appender>
- <appender name="ERROR" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="File" value="../log/userPlatform_error.log"/>
- <param name="Append" value="true" />
- <param name="MaxFileSize" value="50MB" />
- <param name="MaxBackupIndex" value="10" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d %5p %m%n"/>
- </layout>
- <filter class="org.apache.log4j.varia.LevelRangeFilter">
- <param name="LevelMin" value="ERROR"/>
- <param name="LevelMax" value="ERROR"/>
- </filter>
- </appender>
- <category name="com.yihu">
- <priority value="info" />
- <appender-ref ref="log.file" />
- <appender-ref ref="WARN" />
- <appender-ref ref="ERROR" />
- </category>
-
- <!-- <root> -->
- <!-- <priority value="STDOUT"/> -->
- <!-- <appender-ref ref="log.file"/> -->
- <!-- <appender-ref ref="WARN"/> -->
- <!-- </root> -->
- </log4j:configuration>
|