RE: Log4J and tomcat using Commons logging

2003-02-18 Thread Shapira, Yoav
Howdy, Is there a way to tell log4j to use the properties file without relying on the class loader, like an environment variable or something? That might make it easier to use. PropertyConfigurator.configure(getServletContext().getResource(/WEB-INF /config/log4j.properties)); would do the

RE: Log4J and tomcat using Commons logging

2003-02-17 Thread Collins, Jim
2003 18:14 To: [EMAIL PROTECTED] Subject: RE: Log4J and tomcat using Commons logging Hey Jim, Can you help me understand your configuration so I can help identify where the breakdown is? I am most curious about where all the jar files are - common/lib, shared/lib, or WEB-INF/lib

RE: Log4J and tomcat using Commons logging

2003-02-17 Thread Larry Meadors
Hey Jim, I think Yoav's answer is very practical, and in spite of the fact that it would require a code change if you change loggers down the road, it is only a few lines in one place. You should think about it, because it is pretty low-cost, compared to the amount of time we have already spent.

RE: Log4J and tomcat using Commons logging

2003-02-17 Thread Collins, Jim
: RE: Log4J and tomcat using Commons logging Hey Jim, I think Yoav's answer is very practical, and in spite of the fact that it would require a code change if you change loggers down the road, it is only a few lines in one place. You should think about it, because it is pretty low-cost

RE: Log4J and tomcat using Commons logging

2003-02-14 Thread Collins, Jim
Hi, I have managed to get log4j to work for my webapps. I just have a log4j.properties file in WEB-INF/classes and it works. I can't get commons-logging to work though. If I try commons-logging it does not pick up my log4j.properties file yet using log4j directly does pick up the file. I have

RE: Log4J and tomcat using Commons logging

2003-02-14 Thread Larry Meadors
Where are your commons-logging and log4j jars? If they are loaded by a different classloader than the log4j.properties file, it may not work. Larry [EMAIL PROTECTED] 02/14/03 02:47 AM Hi, I have managed to get log4j to work for my webapps. I just have a log4j.properties file in

RE: Log4J and tomcat using Commons logging

2003-02-14 Thread Collins, Jim
:[EMAIL PROTECTED]] Sent: 14 February 2003 15:40 To: [EMAIL PROTECTED] Subject: RE: Log4J and tomcat using Commons logging Where are your commons-logging and log4j jars? If they are loaded by a different classloader than the log4j.properties file, it may not work. Larry [EMAIL

RE: Log4J and tomcat using Commons logging

2003-02-14 Thread Larry Meadors
. Regards Jim. -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Sent: 14 February 2003 15:40 To: [EMAIL PROTECTED] Subject: RE: Log4J and tomcat using Commons logging Where are your commons-logging and log4j jars? If they are loaded by a different classloader

RE: Log4J and tomcat using Commons logging

2003-02-14 Thread Collins, Jim
2003 17:11 To: [EMAIL PROTECTED] Subject: RE: Log4J and tomcat using Commons logging I have never used log4j, but you might try putting the log4j.properties file in common/classes, it means all apps get the same log settings, but may work. :-/ Is there a way to tell log4j to use

RE: Log4J and tomcat using Commons logging

2003-02-14 Thread Larry Meadors
. With commons-logging you do not log to any particular logging implementation. Regards Jim. -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Sent: 14 February 2003 17:11 To: [EMAIL PROTECTED] Subject: RE: Log4J and tomcat using Commons logging I have never used log4j

RE: Log4J and tomcat using Commons logging

2003-02-14 Thread pqin
Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Sent: February 14, 2003 1:14 PM To: [EMAIL PROTECTED] Subject: RE: Log4J and tomcat using Commons logging Hey Jim, Can you help me understand your

RE: Log4J and tomcat using Commons logging

2003-02-14 Thread Larry Meadors
Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Sent: February 14, 2003 1:14 PM To: [EMAIL PROTECTED] Subject: RE: Log4J and tomcat using Commons logging Hey Jim, Can you help me understand your