logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: log4j log file configuraiton
Date Thu, 21 Jun 2007 04:41:38 GMT

What I do is reference a property that I know my web application will 
set up for me upon application startup that is uniquely named, but 
predictable.  For instance, if your webapp context is named "MyApp", 
then you'd reference ${MyApp.log.home} and create this property 
*before* manually configuring log4j.

I set up code to generate the system property and value automatically 
in the log4j-sandbox.  I suggest grabbing the alpha2 or alpha3 tag if 
you want a codebase that will compile and deploy against Log4j 
1.2.x.  See my latest updates to the following wiki entry....



At 03:41 PM 6/12/2007, you wrote:
 >I am using log4j for my webapp logging (a servlet in a war file name
 >The current location of my log files are:
 >How can I change it so that it will be put under the directory of my
 >webapp (e.g. tomcat will create directory 'test' for my 'test.war').
 >Is there a variable that I can use?
 >i.e. something like:
 >Thank you.
 >To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
 >For additional commands, e-mail: log4j-user-help@logging.apache.org

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message