Thanks for the help. I have used the Environment.SpecialFolder class
before, I was just looking to see if there was a simpler way to do
this before going with overriding the log4net stuff. I'll give your
first suggestion a try and if that doesn't seem to work I'll try the
suggestions from the posted url.
Thanks again.
Corey
On Apr 7, 2005 9:08 PM, Nicko Cadell <[EMAIL PROTECTED]> wrote:
> 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
> >
>