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

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.8
    • Fix Version/s: None
    • Component/s: Appenders
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              dominik.rauch Dominik Rauch
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: