[
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.