Set the File property in your property file.  You can use ${tomcat.home}
to refer to the system property set by the Tomcat start-up scripts.  For 
example:

  log4j.appender.LogFile.File=${tomcat.home}/logs/MyApp.log

-JC

[EMAIL PROTECTED]
http://www.roguewave.com


-----Original Message-----
From: Barbara Baughman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 8:12 AM
To: [EMAIL PROTECTED]
Subject: Tomcat and Log4j


I have the logging working in my application, but I need to know how to
set the login file so it comes under webapps/myapp instead of
TOMCAT_HOME/bin.

I'm sure it has something to do with getServletContext.getRealPath(), but
I don't know where to look for the property after I do
PropertyConfigurator.configure() or what log4j calls the property (file
name of the log file).

Thanks in advance for any help.

Barbara Baughman
X2157


---------------------------------------------------------------------
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]

Reply via email to