Thank you Jake, perfect. Mike -----Original Message----- From: Jacob Kjome [mailto:[EMAIL PROTECTED] 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:[EMAIL PROTECTED]> >_______________________________________________ > > >--------------------------------------------------------------------------- ---- >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 >[EMAIL PROTECTED] > >Thank you > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ------------------------------------------------------------------------------- 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 [EMAIL PROTECTED] Thank you --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
