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

RollingFileAppender issue with Date pattern

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.15
    • 1.2.14
    • Builds
    • None
    • software

    Description

      Version 1.2.14 has fixed rollingfile appender issue for date pattern. But in version 1.2.15 doesnt deletes the log file for the value mentioned in 'maxSizeRollBackups'.

      I have attached the Configuration details below.

      <appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
      <file type="log4net.Util.PatternString" value="MyProduct.log" />
      <datePattern value="'.'yyyy-MM-dd"/>
      <appendToFile value="true"/>
      <rollingStyle value="Date"/>
      <staticLogFileName value="false"/>
      <maxSizeRollBackups value="1" />
      <preserveLogFileNameExtension value="true" />
      <layout type="log4net.Layout.PatternLayout">
      <param name="ConversionPattern" value="%r %d [%t] %-5p %c - %m%n"/>
      </layout>
      </appender>

      Please check this bug.

      Attachments

        Activity

          People

            Unassigned Unassigned
            josephrony277@gmail.com Joseph Rony
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: