The ${FOO} syntax expands environment variables.

You may be able to use the following:

> my documents
${USERPROFILE}\My Documents

> desktop
${USERPROFILE}\Desktop

> windows dir
${WINDIR}


Windows also has an API for so called special folders, with log4net
1.2.9 you can add your own pattern to expand these values.
See http://marc.theaimsgroup.com/?l=log4net-user&m=110142086820117&w=2
for an example.

See the Environment.SpecialFolder .NET API documentation on what paths
are available.

Nicko

> -----Original Message-----
> From: Corey Mosher [mailto:[EMAIL PROTECTED] 
> Sent: 07 April 2005 23:37
> To: [email protected]
> Subject: Special Folders In Configuration
> 
> Hi,
> I am trying to get my FileAppender to log everything to a 
> file in the user's my documents folder.  I can't seem to find 
> any information on how to specify special folders in the 
> appender like:
> 
> my documents
> desktop
> windows dir
> 
> I have found out how to specify the user's application data 
> folder using the ${APPDATA} variable, so I'm thinking it's 
> something similar.
> 
> Any ideas?
> 
> Thanks
> 
> Corey Mosher
> 

Reply via email to