You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Dominik Rauch (JIRA)" <ji...@apache.org> on 2019/05/29 07:00:00 UTC
[jira] [Created] (LOG4NET-631) Fails to create file
(NotSupportedException) if appdomain in path contains colon
Dominik Rauch created LOG4NET-631:
-------------------------------------
Summary: Fails to create file (NotSupportedException) if appdomain in path contains colon
Key: LOG4NET-631
URL: https://issues.apache.org/jira/browse/LOG4NET-631
Project: Log4net
Issue Type: Bug
Components: Appenders
Affects Versions: 2.0.8
Reporter: Dominik Rauch
We have a RollingFileAppender in place with the following path:
{code:java}
<conversionPattern value=".\Logs\%appdomain.%date{yyyyMMdd}.%processid.log" />
{code}
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:
{code:java}
%appdomain{:<>|}{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)