标签:
有时候 会出现错误 :如
解决 方法 :http://q.cnblogs.com/q/38885/
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
</configSections>
<log4net>
<root>
<appender-ref ref="RollingFileAppender" />
</root>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="log\\log.txt"/>
<appendToFile value="true"/>
<param name="Encoding" value="UTF-8" />
<lockingModel type="log4net.Appender.FileAppender+MinimalLock"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="记录时间:%date - 错误描述:%message%newline"/>
</layout>
</appender>
</log4net>
</configuration>
标签:
原文地址:http://www.cnblogs.com/laopo/p/4218191.html