[ 
https://issues.apache.org/jira/browse/LOG4NET-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicko Cadell resolved LOG4NET-110.
----------------------------------

    Resolution: Invalid
      Assignee: Nicko Cadell

The equivalent effect can be achieved using the log4net.Util.PatternString, for 
example:

<file type="log4net.Util.PatternString" value="%env{APPDATA}\file.log" />

The PatternString is more powerful and extensible than the environment 
expansion. It is not our intention to increase the use of 
Environment.ExpandEnvironmentVariables in log4net where the same may be 
achieved via PatternString.

Many thanks,
Nicko

> [PATCH] Expand environment variables in filenames of file appenders
> -------------------------------------------------------------------
>
>                 Key: LOG4NET-110
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-110
>             Project: Log4net
>          Issue Type: New Feature
>          Components: Appenders
>    Affects Versions: v.Next
>         Environment: Windows XP, 2000, 2003, .NET 1.0, 1.1 & 2.0
>            Reporter: Ulrich Proeller
>         Assigned To: Nicko Cadell
>            Priority: Minor
>         Attachments: patch-file.txt
>
>
> I have added a small patch to Util/SystemInfo.cs to the method 
> ConvertToFullPath():
>             // Expand Environment variables
>             path = Environment.ExpandEnvironmentVariables(path);
> This enables log4net to expand environment variables like %AppData% or 
> %AllUsersProfile%. 
> I think, this is quite useful if you don't want to log to the application 
> directory.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to