Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
asp.net 2.0
Description
We are using a log4net version 1.2.10.1. We have a web application in which we are using log4net rolling appender for application logging.
However the files which are 0Kb is not rolling on a daily basis. Below is the configuration we are using. It's configured to roll on a date basis.
The logs which are >0kb are rolling fine.
<appender name="FileAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="D:\LogFiles\abc\abc_"/>
<param name="AppendToFile" value="true"/>
<param name="RollingStyle" value="Date"/>
<param name="DatePattern" value="yyyyMMdd.LOG"/>
<param name="staticLogFileName" value="false"/>
<param name="ImmediateFlush" value="true"/>
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n"/>
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<param name="LevelMin" value="DEBUG"/>
<param name="LevelMax" value="FATAL"/>
</filter>
</appender>
<logger name="FileLogger">
<level value="INFO"/>
<appender-ref ref="FileAppender"/>
</logger>
Any help ASAP will be appreciated.
Attachments
Issue Links
- is duplicated by
-
LOG4NET-240 Backup of logs are not created when application is running and at the same time date changes.
- Closed
- is superceded by
-
LOG4NET-367 RollingFileAppender-NG: rewrite the RollingFileAppender
- Open