Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-280

Rolling appender doesnt roll 0kb file, configured to roll on date.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • Appenders
    • 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

          Activity

            People

              Unassigned Unassigned
              naviadi Naveen Jakkur Muniraju
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 672h
                  672h
                  Remaining:
                  Remaining Estimate - 672h
                  672h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified