RE: path of log files
<[email protected]> Mon, 19 Jan 2004 09:02:53 -0000
| Newsgroups | gmane.comp.windows.dotnet.log4net.user |
|---|---|
| Message-ID | <[email protected]> |
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]]=20 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 pers= on or organisation to whom it is addressed. Its contents are confidential = and may be protected in law. Unauthorised use, copying or disclosure of an= y of it may be unlawful. If you are not the intended recipient, please con= tact 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 acce= pt liability for any damage, which you sustain as a result of software viru= ses. You should carry out your own virus checking procedure before opening= any attachment. Marlborough Stirling plc, Registered in England and Wales=20 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