Light12306/ChatRoomServer.Main/Config/log4net.server.config

67 lines
2.7 KiB
Plaintext
Raw Normal View History

2015-07-01 16:18:25 +08:00
<?xml version="1.0" encoding="utf-8" ?>
<FSLib.Logs.Log4Net>
<appender name="ServerErrorAppender" type="FSLib.Logs.Log4Net.Appender.RollingFileAppender">
<filter type="FSLib.Logs.Log4Net.Filter.LevelMatchFilter">
<levelToMatch value="ERROR" />
</filter>
<!--<filter type="FSLib.Logs.Log4Net.Filter.LoggerMatchFilter">
<acceptOnMatch value="true" />
<loggerToMatch value="FSLib.Network.Server" />
</filter>-->
<filter type="FSLib.Logs.Log4Net.Filter.DenyAllFilter" />
<File value="Logs\server_err.log" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd" />
<layout type="FSLib.Logs.Log4Net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="ServerInfoAppender" type="FSLib.Logs.Log4Net.Appender.RollingFileAppender">
<filter type="FSLib.Logs.Log4Net.Filter.LevelMatchFilter">
<levelToMatch value="INFO" />
</filter>
<!--<filter type="FSLib.Logs.Log4Net.Filter.LoggerMatchFilter">
<acceptOnMatch value="true" />
<loggerToMatch value="FSLib.Network.Server" />
</filter>-->
<filter type="FSLib.Logs.Log4Net.Filter.DenyAllFilter" />
<File value="Logs\server_info.log" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd" />
<layout type="FSLib.Logs.Log4Net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="ServerDebugAppender" type="FSLib.Logs.Log4Net.Appender.RollingFileAppender">
<filter type="FSLib.Logs.Log4Net.Filter.LevelMatchFilter">
<levelToMatch value="DEBUG" />
</filter>
<!--<filter type="FSLib.Logs.Log4Net.Filter.LoggerMatchFilter">
<acceptOnMatch value="true" />
<loggerToMatch value="FSLib.Network.Server" />
</filter>-->
<filter type="FSLib.Logs.Log4Net.Filter.DenyAllFilter" />
<File value="Logs\server_debug.log" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd" />
<layout type="FSLib.Logs.Log4Net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="ServerConsoleAppender" type="FSLib.Logs.Log4Net.Appender.ConsoleAppender">
<target value="Console.Out" />
<layout type="FSLib.Logs.Log4Net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<root>
<level value="ALL" />
<appender-ref ref="ServerConsoleAppender" />
<appender-ref ref="ServerErrorAppender" />
<appender-ref ref="ServerInfoAppender" />
<appender-ref ref="ServerDebugAppender" />
</root>
</FSLib.Logs.Log4Net>