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

Fails to create file (NotSupportedException) if appdomain in path contains colon

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.8
    • None
    • Appenders
    • None

    Description

      We have a RollingFileAppender in place with the following path:

      <conversionPattern value=".\Logs\%appdomain.%date{yyyyMMdd}.%processid.log" />
      

      Unfortunately this fails if the AppDomain contains a colon, because the path is no longer valid in that case.

      To fully use this feature the AppDomain value should be stripped of invalid characters first, or replace those with an underline or something like that.

       

      As a workaround: is there a way to replace characters? Something like:

      %appdomain{:<>|}

      Attachments

        Activity

          People

            Unassigned Unassigned
            dominik.rauch Dominik Rauch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: