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

Backup of logs are not created when application is running and at the same time date changes.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.2.10
    • Appenders
    • None
    • XP

    Description

      Hi,

      I have set configuration properties as below.

      <appender name="DMLRollingFileAppender" type="log4net.Appender.RollingFileAppender">
      <file value="DML Log.txt" />
      <appendToFile value="true" />
      <rollingStyle value="Composite" />
      <maxSizeRollBackups value="5" />
      <maximumFileSize value="5000KB" />
      <datePattern value=".yyyyMMdd" />
      <staticLogFileName value="true" />
      <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%date

      {HH:mm:ss}

      %-5logger %-5level [%-15.15thread] > %message%newline"/>
      </layout>
      </appender>
      When is in running mode, data gets locked correctely but in the mean time if date changes, previous date's backup is not getting created. This happens only if application is running else it works perfectely.

      Please help.

      Attachments

        Issue Links

          Activity

            People

              nachbarslumpi Dominik Psenner
              renukak renuka
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: