logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Jaynes" <wjay...@mediaone.net>
Subject Re: Problem with log4j not finding config file in WEB-INF/classes
Date Thu, 02 Aug 2001 10:50:14 GMT
If for each web application the log4j.jar file is in WEB-INF/lib and the
log4j.properties file is in WEB-INF/classes, then as each web app is started the
log4j default initializer will work properly for each app. (assuming log4j
1.1.3)

There should not be any log4j.properties file in the application server's
classpath because if there is, that is the properties file that will be used for
all the web apps instead of the one in WEB-INF/classes.

----- Original Message -----
From: "Tony" <deja_tony_123@yahoo.com>
To: <log4j-user@jakarta.apache.org>
Sent: Thursday, August 02, 2001 5:44 AM
Subject: Problem with log4j not finding config file in WEB-INF/classes


> Hi Folks
>
> I need a little help.  I am running tomcat and have a servlet which uses
> the log4j library.  I have placed the configuration file
>
> log4j.properties         --(0)
>
> for log4j in the
>
> WEB-INF/classes          --(1)
>
> directory of my application, but when I call
>
> PropertyConfigurator.configure();
>
> in my servlet it dosent seem to find the configuration file placed in (1).
> I know log4j is using default values since when I remove (0) from (1) the
> servlet runs correctly and there are no errors reporting that
> log4j cannot find a configuration file and the log4j class writes to the
> tomcat.log
> file.
> I want it to pick up the file (0) in (1).
> Does anyone know what I might be doing wrong?
>
> Cheers
>
> Tony
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message