how can i configure Tomcat's log4j to log in a separate file for each webapp?

2010-06-18 Thread dB .
This question is all over the internet, without a satisfactory answer. We have a Tomcat deployment in which we install many web apps. We call this thing a services host. It has a log4j configuration that forwards logs into a file. I'd like to change the file pattern to include the name of the

Re: how can i configure Tomcat's log4j to log in a separate file for each webapp?

2010-06-18 Thread Erik Bertelsen
2010/6/18 dB. dbl...@dblock.org: This question is all over the internet, without a satisfactory answer. We have a Tomcat deployment in which we install many web apps. We call this thing a services host. It has a log4j configuration that forwards logs into a file. I'd like to change the file

RE: how can i configure Tomcat's log4j to log in a separate file for each webapp?

2010-06-18 Thread dB .
That's exactly what I am trying to avoid :) I have a lot of web apps and developers that stand on their head for logging. My customers end up finding logs all over the place and enforcing it by convention is getting harder and harder. I'd like to configure logging for them rather than leave

Re: how can i configure Tomcat's log4j to log in a separate file for each webapp?

2010-06-18 Thread Gurkan Erdogdu
Hello dB; This is the step by step actions to configure your log4j logging in one place in Tomcat lib/log4j.properties Actions - 1- Remove logging.properties from conf/logging.properties 2- Remove tomcat-juli.jar from bin/tomcat-juli.jar 3- Get tomcat-juli.jar and

RE: how can i configure Tomcat's log4j to log in a separate file for each webapp?

2010-06-18 Thread dB .
And can I do this for an application I don't know anything about? I mean all I really want is log4j.appender.R.File=${catalina.base}/logs/${APPLICATION.NAME}.log dB. @ dblock.org Moscow|Geneva|Seattle|New York -Original Message- From: Gurkan Erdogdu