我想实现这样的功能,就是再那个可视界面配置时,可以按照天来记录,
比如,今天是15号,就再日志目录里建立一个文件20070315trace.log,明天是16号就建个20070316trace.log文件,
\谢谢
------解决方案--------------------------------------------------------
//*****写一个Web Services接口,就可以了哈.
------解决方案--------------------------------------------------------
2.0不行的,除非自己扩展logging application block。
3.0可以的
------解决方案--------------------------------------------------------
<appender name= "RollingLogFileAppender " type= "log4net.Appender.RollingFileAppender ">
<param name= "File " value= "LogFiles/ "/>
<param name= "AppendToFile " value= "true "/>
<param name= "MaxSizeRollBackups " value= "10 "/>
<param name= "StaticLogFileName " value= "false "/>
<param name= "DatePattern " value= "yyyy-MM-dd".txt" "/>
<param name= "RollingStyle " value= "Date "/>
<layout type= "log4net.Layout.PatternLayout ">
<param name= "ConversionPattern " value= "%m %d{yyyy-MM-dd HH:mm:ss} %n "/>
</layout>
</appender>