12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?xml version="1.0" encoding="utf-8"?>
- <log4net>
- <appender name="errorAppender" type="log4net.Appender.RollingFileAppender">
- <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
- <filter type="log4net.Filter.LevelMatchFilter">
- <levelToMatch value="ERROR" />
- </filter>
- <filter type="log4net.Filter.DenyAllFilter" />
- <file value="../log/10001/err.log" />
- <encoding value="utf-8" />
- <preserveLogFileNameExtension value="true" />
- <appendToFile value="true" />
- <rollingStyle value="Composite" />
- <maxSizeRollBackups value="100" />
- <maximumFileSize value="256MB" />
- <datePattern value="yyyyMMdd" />
- <layout type="log4net.Layout.PatternLayout">
- <conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
- </layout>
- </appender>
- <appender name="warnAppender" type="log4net.Appender.RollingFileAppender">
- <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
- <filter type="log4net.Filter.LevelMatchFilter">
- <levelToMatch value="WARN" />
- </filter>
- <filter type="log4net.Filter.DenyAllFilter" />
- <file value="../log/10001/warn.log" />
- <encoding value="utf-8" />
- <preserveLogFileNameExtension value="true" />
- <appendToFile value="true" />
- <rollingStyle value="Composite" />
- <maxSizeRollBackups value="100" />
- <maximumFileSize value="256MB" />
- <datePattern value="yyyyMMdd" />
- <layout type="log4net.Layout.PatternLayout">
- <conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
- </layout>
- </appender>
- <appender name="infoAppender" type="log4net.Appender.RollingFileAppender">
- <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
- <filter type="log4net.Filter.LevelMatchFilter">
- <levelToMatch value="INFO" />
- </filter>
- <filter type="log4net.Filter.DenyAllFilter" />
- <file value="../log/10001/info.log" />
- <encoding value="utf-8" />
- <preserveLogFileNameExtension value="true" />
- <appendToFile value="true" />
- <rollingStyle value="Composite" />
- <maxSizeRollBackups value="100" />
- <maximumFileSize value="256MB" />
- <datePattern value="yyyyMMdd" />
- <layout type="log4net.Layout.PatternLayout">
- <conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
- </layout>
- </appender>
- <appender name="debugAppender" type="log4net.Appender.RollingFileAppender">
- <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
- <filter type="log4net.Filter.LevelMatchFilter">
- <levelToMatch value="DEBUG" />
- </filter>
- <filter type="log4net.Filter.DenyAllFilter" />
- <file value="../log/10001/debug.log" />
- <encoding value="utf-8" />
- <preserveLogFileNameExtension value="true" />
- <appendToFile value="true" />
- <rollingStyle value="Composite" />
- <maxSizeRollBackups value="100" />
- <maximumFileSize value="256MB" />
- <datePattern value="yyyyMMdd" />
- <layout type="log4net.Layout.PatternLayout">
- <conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
- </layout>
- </appender>
- <root>
- <level value="ALL" />
- <appender-ref ref="errorAppender" />
- <appender-ref ref="warnAppender" />
- <appender-ref ref="infoAppender" />
- <appender-ref ref="debugAppender" />
- </root>
- </log4net>
|