RE: path of log files

Nicko Cadell <[email protected]> Mon, 19 Jan 2004 11:50:52 -0000
Newsgroups gmane.comp.windows.dotnet.log4net.user
Message-ID <[email protected]>
If you are using the xml configuration file to set the file path you will
need to double escape the backslashes, e.g.

<File value="c:\\MyApp\\Logs\\Error.log" />

Nicko

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] 
> Sent: 19 January 2004 09:03
> To: [email protected]; [email protected]
> Subject: RE: [Log4net-users] path of log files
> 
> 
> The file entry does not have to be just a file name.  You can 
> put in values such as .\logs\Error.log and this will write 
> the data to a logs folder under your current folder.  You can 
> also put in absolute paths such as "c:\MyApp\Logs\Error.log". 
>  If the folder does not exist, log4net will create it for you.
> 
> Cheers,
> 
> Bill
> 
> 
> 
>  -----Original Message-----
> From: 	Alex Ben-Ari [mailto:[email protected]] 
> Sent:	18 January 2004 11:39
> To:	[email protected]
> Subject:	[Log4net-users] path of log files
> 
> Does anyone know how to control the path where the log files 
> are emitted to? The RollingFileAppedner receives the log file 
> name, but not the path. It seems like the log files are 
> always created in the same folder the app is executing from, 
> while what I need is for them to be created in a different 
> directory whose relative path is ..\logs (relative to the 
> execution dir).
> 
> Can anyone help please ?
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration 
> See the breadth of Eclipse activity. February 3-5 in Anaheim, 
> CA. http://www.eclipsecon.org/osdn 
> _______________________________________________
> Log4net-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/log4net-users
> 
> 
> 
> 
> ______________________________________________________________
> 
> CONFIDENTIALITY NOTICE
> 
> This communication and the information it contains is 
> intended for the person or organisation to whom it is 
> addressed.  Its contents are confidential and may be 
> protected in law.  Unauthorised use, copying or disclosure of 
> any of it may be unlawful.  If you are not the intended 
> recipient, please contact us immediately.
> 
> The contents of any attachments in this e-mail may contain 
> software viruses, which could damage your own computer 
> system.  While Marlborough Stirling has taken every 
> reasonable precaution to minimise this risk, we cannot accept 
> liability for any damage, which you sustain as a result of 
> software viruses.  You should carry out your own virus 
> checking procedure before opening any attachment.
> 
> Marlborough Stirling plc, Registered in England and Wales 
> Registered No. 3008820,
> Allen Jones House, Jessop Avenue, Cheltenham, 
> Gloucestershire, GL50 3SH
> Tel: 01242 547000     Fax: 01242 547100
> http://www.marlborough-stirling.com
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration 
> See the breadth of Eclipse activity. February 3-5 in Anaheim, 
> CA. http://www.eclipsecon.org/osdn 
> _______________________________________________
> Log4net-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/log4net-users
> 


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn