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
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
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
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
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
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
:[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
.
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
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
. 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
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
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
12 matches
Mail list logo