标签:
Log.dll 和Log4net.dll 文件配置
<log4net>
<root>
<level value="ALL"/>
<appender-ref ref="SysAppender"/>
</root>
<logger name="FastLogger">
<level value="DEBUG"/>
</logger>
<appender name="SysAppender" type="log4net.Appender.RollingFileAppender,log4net" >
<param name="File" value="Log/" />
<param name="AppendToFile" value="true" />
<param name="RollingStyle" value="Date" />
<param name="DatePattern" value=""Log_"yyyyMMdd".txt"" />
<param name="StaticLogFileName" value="false" />
<param name="MaxSizeRollBackups" value="12"/>
<param name="MaximumFileSize" value="2048KB"/>
<layout type="log4net.Layout.PatternLayout,log4net">
<param name="ConversionPattern" value="%d [%t] %-5p %c : %n%m%n%n" />
<param name="Header" value="
----------------------header--------------------------
" />
<param name="Footer" value="
----------------------footer--------------------------
" />
</layout>
</appender>
</log4net>
标签:
原文地址:http://www.cnblogs.com/zhaoCat/p/5136527.html