3 messages in org.apache.logging.log4j-userRE: Servlet / File Appender question
FromSent OnAttachments
Lutz Michael24 Jun 2004 05:19 
Jacob Kjome24 Jun 2004 06:18 
Lutz Michael24 Jun 2004 06:59 
Subject:RE: Servlet / File Appender question
From:Lutz Michael (mich@siemens.com)
Date:06/24/2004 06:59:27 AM
List:org.apache.logging.log4j-user

Thank you Jake, perfect. Mike

-----Original Message----- From: Jacob Kjome [mailto:ho@visi.com] Sent: Thursday, June 24, 2004 9:19 AM To: Log4J Users List Subject: Re: Servlet / File Appender question

At 08:19 AM 6/24/2004 -0400, you wrote:

When using one of the various File Appenders from Servlet-based code, the output is getting sent to the Windows System directory (specifically on my machine to c:\winnt\system32).

Is there a way to specify that a File Appenders output be sent separately to each Web Application's directory structure? All I really want to do is keep each Web Application's output separate from the other's.

Thanks in advance.

Reference a system property in your log4j.xml with the path to where logs are to be written. In each webapp, set the system property. The property should be unique enough to make it unlikely for other apps to use that system property. If you want this more automated, the stuff I wrote for the logging-log4j-sandbox does this automatically for you. See...

http://nagoya.apache.org/wiki/apachewiki.cgi?Log4JProjectPages/AppContainerL ogging

See the links there and read the javadoc of the various classes in the servlet package.

Jake

Mike

_______________________________________________ Siemens Medical Solutions Health Services Michael Lutz Software Engineer, Soarian Common Components 51 Valley Stream Parkway, Malvern, PA 19355 Office / Voice Mail +01 610-219-8613 Cell +01 610-952-2289 Home Office +01 610-989-3623 Fax +01 610-219-4004 E-mail <mailto:mich@siemens.com>

_______________________________________________

--------------------------------------------------------------------------- ---- This message and any included attachments are from Siemens Medical Solutions USA, Inc. and are intended only for the addressee(s). The information contained herein may include trade secrets or privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message and notify the sender by e-mail with a copy to Cent@shs.siemens.com

Thank you

--------------------------------------------------------------------- To unsubscribe, e-mail: log4@logging.apache.org For additional commands, e-mail: log4@logging.apache.org

------------------------------------------------------------------------------- This message and any included attachments are from Siemens Medical Solutions USA, Inc. and are intended only for the addressee(s). The information contained herein may include trade secrets or privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message and notify the sender by e-mail with a copy to
Cent@shs.siemens.com

Thank you