Log4net
  1. Log4net
  2. LOG4NET-64

[PATCH] to RollingFileAppender.cs to add the ability to preserve the log file name extension when rolling the log file.

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.9
    • Fix Version/s: 1.2.11
    • Component/s: Appenders
    • Labels:
      None

      Description

      Normally, when the log file is rolled the file name extension is not preserved.

      For example, file.log is rolled to file.log.1 or file.log.yyyy-MM-dd.

      However, this may not be desired in all cases and it may be necessary to preserve the log file name extension when the log file is rolled. Most notably, this feature is useful for maintaining file associations under Windows so that all log files can be associated with a particaular text viewer.

      For example, file.log is rolled to file.1.log or file.yyyy-MM-dd.log.

      This patch adds an additional boolean property PreserveLogFileNameExtension to the RollingFileAppender class which is used to toggle this behavior.

      1. log4net-64.patch
        0.9 kB
        Eike-Peter Falk
      2. LOG4NET-64.patch
        11 kB
        Ron Grabowski
      3. LOG4NET-64.patch
        5 kB
        Ayende Rahien
      4. patch.txt
        5 kB
        Joshua Bassett

        Issue Links

          Activity

          Joshua Bassett created issue -
          Joshua Bassett made changes -
          Field Original Value New Value
          Attachment patch.txt [ 12322050 ]
          Nicko Cadell made changes -
          Link This issue blocks LOG4NET-66 [ LOG4NET-66 ]
          Ron Grabowski made changes -
          Assignee Ron Grabowski [ ron ]
          Ayende Rahien made changes -
          Attachment LOG4NET-64.patch [ 12391920 ]
          Ron Grabowski made changes -
          Attachment LOG4NET-64.patch [ 12391964 ]
          Ron Grabowski made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.2.11 [ 12310980 ]
          Resolution Fixed [ 1 ]
          Eike-Peter Falk made changes -
          Attachment log4net-64.patch [ 12426662 ]
          Gavin made changes -
          Link This issue blocks LOG4NET-66 [ LOG4NET-66 ]
          Gavin made changes -
          Link This issue is depended upon by LOG4NET-66 [ LOG4NET-66 ]

            People

            • Assignee:
              Ron Grabowski
              Reporter:
              Joshua Bassett
            • Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development