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

Log file overwritten by rollingLogFileAppender after date-change with rolling style = date

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.2.13
    • None
    • Appenders
    • None
    • Windows XP, Windows server 2008, .Net 4.0

    Description

      When logging from the main thread after a date change and the maxsize of backups is reached, the existing log lines of other threads is removed from the file (or file is overwritten). Logging from other (sub) threads don't affect the file contents.

      Relevant appender configuration:
      <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
      <appendToFile value="true" />
      <staticLogFileName value="false" />
      <rollingStyle value="Date" />
      <datePattern value="yyyy-MM-dd'.log'" />
      <maxSizeRollBackups value="2" />

      Attachments

        Issue Links

          Activity

            People

              nachbarslumpi Dominik Psenner
              Gleeuw Gerard de Leeuw
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: