RE: How to have multiple loggers with shared code also using the logger?

2009-01-24 Thread removeps-groups
Here's an update on the logger issue. It too me long to figure out because I ran into an issue about privileged servlets and had to write my own log4j.properties parser. The original code posted earlier in this thread works in that it creates a different logger for web application, and allows

RE: How to have multiple loggers with shared code also using the logger?

2009-01-15 Thread removeps-groups
Thanks, this makes sense. However, I'd like to find out what is being held onto by the log4j.jar. So I'd like to test it out. How does one redploy a single application? Strange, I could not find any information on this seemingly basic task on google. Thanks again. --- On Wed, 1/14/09,

RE: How to have multiple loggers with shared code also using the logger?

2009-01-15 Thread Caldarale, Charles R
From: removeps-gro...@yahoo.com [mailto:removeps-gro...@yahoo.com] Subject: RE: How to have multiple loggers with shared code also using the logger? How does one redploy a single application? Strange, I could not find any information on this seemingly basic task on google. Read the real

RE: How to have multiple loggers with shared code also using the logger?

2009-01-14 Thread removeps-groups
Because of the classloading hierarchy. Once the logger is initialized with the common classloader, everybody uses that one. Thanks. I studied the Apache logger code. When we call org.apache.log4j.Logger.getLogger(), it calls functions of LogManager. The static initializer block of

RE: How to have multiple loggers with shared code also using the logger?

2009-01-14 Thread Caldarale, Charles R
From: removeps-gro...@yahoo.com [mailto:removeps-gro...@yahoo.com] Subject: RE: How to have multiple loggers with shared code also using the logger? And since the log4j.jar resides in the ${catalina.home}/lib folder, this root logger is used by all web apps. The log4j.jar is only there

RE: How to have multiple loggers with shared code also using the logger?

2009-01-13 Thread Mark Thomas
-Original Message- From: removeps-gro...@yahoo.com [mailto:removeps-gro...@yahoo.com] How to have multiple loggers with shared code also using the logger? This is more of a log4j question that a Tomcat one. From a brief look at the log4j sources it looks as if you'll need a custom

RE: How to have multiple loggers with shared code also using the logger?

2009-01-13 Thread Caldarale, Charles R
From: removeps-gro...@yahoo.com [mailto:removeps-gro...@yahoo.com] Subject: How to have multiple loggers with shared code also using the logger? How to have multiple loggers with shared code also using the logger? In ${catalina.home}/lib there is a jar file that contains class MyLog.

RE: How to have multiple loggers with shared code also using the logger?

2009-01-13 Thread removeps-groups
Why is it what I'm trying to do not working though? It seems that my MyLog.getLogger function does find the correct logger name, and that Logger.getLogger() is always using the the first log4j.properties that was found. Yeah, I had tried something like this, namely to have a class

RE: How to have multiple loggers with shared code also using the logger?

2009-01-13 Thread Caldarale, Charles R
From: removeps-gro...@yahoo.com [mailto:removeps-gro...@yahoo.com] Subject: RE: How to have multiple loggers with shared code also using the logger? Why is it what I'm trying to do not working though? It seems that my MyLog.getLogger function does find the correct logger name, and that