2013-12-23 23:53:38 +08:00
|
|
|
|
<?xml version="1.0"?>
|
2013-12-23 19:21:51 +08:00
|
|
|
|
<configuration>
|
|
|
|
|
<configSections>
|
|
|
|
|
<section name="log4net" type="System.Configuration.IgnoreSectionHandler"/>
|
|
|
|
|
</configSections>
|
|
|
|
|
<log4net>
|
|
|
|
|
<appender name="LogFileAppender" type="log4net.Appender.FileAppender">
|
2013-12-23 23:53:38 +08:00
|
|
|
|
<file value="log.txt"/>
|
|
|
|
|
<appendToFile value="true"/>
|
|
|
|
|
<rollingStyle value="Date"/>
|
|
|
|
|
<datePattern value="yyyyMMdd-HH:mm:ss"/>
|
2013-12-23 19:21:51 +08:00
|
|
|
|
<layout type="log4net.Layout.PatternLayout">
|
2013-12-23 23:53:38 +08:00
|
|
|
|
<conversionPattern value="Date:%date Level:%-5level Msg:%message%newline"/>
|
2013-12-23 19:21:51 +08:00
|
|
|
|
</layout>
|
|
|
|
|
</appender>
|
|
|
|
|
<root>
|
2013-12-23 23:53:38 +08:00
|
|
|
|
<appender-ref ref="LogFileAppender"/>
|
2013-12-23 19:21:51 +08:00
|
|
|
|
</root>
|
|
|
|
|
</log4net>
|
2013-12-25 00:21:54 +08:00
|
|
|
|
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|