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 "André Normann (JIRA)" <ji...@apache.org> on 2007/05/24 10:51:16 UTC

[jira] Created: (LOG4NET-115) Expand UserAppDataPath in filename

Expand UserAppDataPath in filename
----------------------------------

                 Key: LOG4NET-115
                 URL: https://issues.apache.org/jira/browse/LOG4NET-115
             Project: Log4net
          Issue Type: New Feature
          Components: Appenders
    Affects Versions: 1.2.10
         Environment: Windows XP, 2000, 2003, .NET 1.0, 1.1, 2.0
            Reporter: André Normann
            Priority: Minor
         Attachments: UserAppDataPathPatternConverter.cs

I have implemented a new PatternStringConverter which will expand the application AppUserDataPath (System.Windows.Forms.Application.UserAppDataPath). This is usefull, if you wish to log into this directory when a certain user has no write rights for the application directory.

Here an example: 

<file type="log4net.Util.PatternString" value="%userappdatapath\Log.txt"/>

Regards,
André


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


[jira] Commented: (LOG4NET-115) Expand UserAppDataPath in filename

Posted by "Ron Grabowski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LOG4NET-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554066 ] 

Ron Grabowski commented on LOG4NET-115:
---------------------------------------

We would need to add a reference to System.Windows.Forms to support this.

A better strategy might be to create a pattern converter for the System.Environment.SpecialFolder enumeration:

 %specialFolderPath{ApplicationData}

which would allow access to these items:

 ApplicationData
 CommonApplicationData
 CommonProgramFiles
 Cookies
 Desktop
 DesktopDirectory
 Favorites
 History
 InternetCache
 LocalApplicationData
 MyComputer
 MyDocuments
 MyMusic
 MyPictures
 Personal
 ProgramFiles
 Programs
 Recent
 SendTo
 StartMenu
 Startup
 System
 Templates

> Expand UserAppDataPath in filename
> ----------------------------------
>
>                 Key: LOG4NET-115
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-115
>             Project: Log4net
>          Issue Type: New Feature
>          Components: Appenders
>    Affects Versions: 1.2.10
>         Environment: Windows XP, 2000, 2003, .NET 1.0, 1.1, 2.0
>            Reporter: André Normann
>            Priority: Minor
>         Attachments: PatternString.cs, UserAppDataPathPatternConverter.cs
>
>
> I have implemented a new PatternStringConverter which will expand the application AppUserDataPath (System.Windows.Forms.Application.UserAppDataPath). This is usefull, if you wish to log into this directory when a certain user has no write rights for the application directory.
> Here an example: 
> <file type="log4net.Util.PatternString" value="%userappdatapath\Log.txt"/>
> Regards,
> André

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


[jira] Updated: (LOG4NET-115) Expand UserAppDataPath in filename

Posted by "André Normann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4NET-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

André Normann updated LOG4NET-115:
----------------------------------

    Attachment: UserAppDataPathPatternConverter.cs

> Expand UserAppDataPath in filename
> ----------------------------------
>
>                 Key: LOG4NET-115
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-115
>             Project: Log4net
>          Issue Type: New Feature
>          Components: Appenders
>    Affects Versions: 1.2.10
>         Environment: Windows XP, 2000, 2003, .NET 1.0, 1.1, 2.0
>            Reporter: André Normann
>            Priority: Minor
>         Attachments: UserAppDataPathPatternConverter.cs
>
>
> I have implemented a new PatternStringConverter which will expand the application AppUserDataPath (System.Windows.Forms.Application.UserAppDataPath). This is usefull, if you wish to log into this directory when a certain user has no write rights for the application directory.
> Here an example: 
> <file type="log4net.Util.PatternString" value="%userappdatapath\Log.txt"/>
> Regards,
> André

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


[jira] Resolved: (LOG4NET-115) Expand UserAppDataPath in filename

Posted by "Ron Grabowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4NET-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ron Grabowski resolved LOG4NET-115.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2.11
         Assignee: Ron Grabowski

Fixed in r606477 by adding EnvironmentFolderPathPatternConverter to allow System.Environment.SpecialFolder pattern string expansion:

 %envFolderPath{ApplicationData}
 %envFolderPath{Desktop}
 

> Expand UserAppDataPath in filename
> ----------------------------------
>
>                 Key: LOG4NET-115
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-115
>             Project: Log4net
>          Issue Type: New Feature
>          Components: Appenders
>    Affects Versions: 1.2.10
>         Environment: Windows XP, 2000, 2003, .NET 1.0, 1.1, 2.0
>            Reporter: André Normann
>            Assignee: Ron Grabowski
>            Priority: Minor
>             Fix For: 1.2.11
>
>         Attachments: PatternString.cs, UserAppDataPathPatternConverter.cs
>
>
> I have implemented a new PatternStringConverter which will expand the application AppUserDataPath (System.Windows.Forms.Application.UserAppDataPath). This is usefull, if you wish to log into this directory when a certain user has no write rights for the application directory.
> Here an example: 
> <file type="log4net.Util.PatternString" value="%userappdatapath\Log.txt"/>
> Regards,
> André

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


[jira] Updated: (LOG4NET-115) Expand UserAppDataPath in filename

Posted by "André Normann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4NET-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

André Normann updated LOG4NET-115:
----------------------------------

    Attachment: PatternString.cs

> Expand UserAppDataPath in filename
> ----------------------------------
>
>                 Key: LOG4NET-115
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-115
>             Project: Log4net
>          Issue Type: New Feature
>          Components: Appenders
>    Affects Versions: 1.2.10
>         Environment: Windows XP, 2000, 2003, .NET 1.0, 1.1, 2.0
>            Reporter: André Normann
>            Priority: Minor
>         Attachments: PatternString.cs, UserAppDataPathPatternConverter.cs
>
>
> I have implemented a new PatternStringConverter which will expand the application AppUserDataPath (System.Windows.Forms.Application.UserAppDataPath). This is usefull, if you wish to log into this directory when a certain user has no write rights for the application directory.
> Here an example: 
> <file type="log4net.Util.PatternString" value="%userappdatapath\Log.txt"/>
> Regards,
> André

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