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

2009-01-24 Thread removeps-groups
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 docs first, then Google only if needed. http://tomcat.apache.org/tomcat-6.0-doc/deployer

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. Doctor

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

2009-01-13 Thread removeps-groups
[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. Doctor, doctor, it hurts when I

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

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

2009-01-12 Thread removeps-groups
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. There is a function in it public class MyLog { public static Logger getLogger() { ClassLoader classLoader =