Parameterizing log4j.properties/xml files

2009-03-20 Thread Ken Bowen
All, Apologies if I've missed the answer to this in the Logging HowTo, the FAQ, or Andre's collection of the logging discussion. Env: TC 6.0.18 + Java 1.5 The issue: I want to have several instances of the same webapp running on the same Tomcat as myapp1, myapp2, etc. That's easy. I'm

Re: [OT] Parameterizing log4j.properties/xml files

2009-03-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, On 3/20/2009 12:08 PM, Ken Bowen wrote: But is there any parameter syntax that would allow me to grab the context name and write one log4j.properties with something like this:

Re: Parameterizing log4j.properties/xml files

2009-03-20 Thread Rusty Wright
I was doing something like this with LogBack (successor to log4j more or less), but I'm no longer using it and don't remember how I set it up. The class starts as follows: public final class InitLogback extends HttpServlet { @Override public void init() { final String pathPrefix