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

Allow to specify file name as wildcard pattern

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.9, 1.2.10, 1.2.11
    • Appenders
    • None
    • Windows

    Description

      Change 707809 fixes issue with windows file name extension.
      From filename.txt.1, filename.txt.2 it changes it to filename.1.txt, filename.2.txt.
      But it is still limiting form some use cases. I need to integrate logs with existing logging infrastucture that requires file names to be filename_0.log, filename_1.log.
      I propose to add additional property to specify filename as a format pattern. I recommend using standard .net string format. So in my case file name would be filename_

      {0}

      .log.

      It would also support other cases like requirement for filename to be filename_00.log, filename_01.log. Just specify format as filename_

      {00}

      .log

      Also property to specify initial counter value is necessary to support my use case.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rusgeek Maxim Fateev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: