You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Stefan Bodewig (JIRA)" <ji...@apache.org> on 2011/08/19 12:38:27 UTC

[jira] [Updated] (LOG4NET-110) [PATCH] Expand environment variables in filenames of file appenders

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

Stefan Bodewig updated LOG4NET-110:
-----------------------------------

    Affects Version/s:     (was: v.Next)

> [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
>         Environment: Windows XP, 2000, 2003, .NET 1.0, 1.1 & 2.0
>            Reporter: Ulrich Proeller
>            Assignee: 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira