logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harp, George" <GH...@GAINSystems.com>
Subject RE: Log4j can't find config unless in current dir
Date Thu, 23 Mar 2006 15:04:34 GMT
Have you tried -Dlog4j.configuration=/conf/log4j.properties 

-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Nick de Graeve
Sent: Thursday, March 23, 2006 2:22 AM
To: log4j-user@logging.apache.org
Subject: Log4j can't find config unless in current dir

We have an JARed application that uses log4j. The directory structure
looks like
this:

./nokeosclient.jar
./conf/log4j.properties

In the manifest we have:

Class-Path: . conf

When we start the application we get:

log4j:WARN No appenders could be found for logger
(com.fpc.nokeos.core.client.launch.Launcher).
log4j:WARN Please initialize the log4j system properly.

If we put log4j.properties in . everything works ok. 

How can I make it work with the properties in the conf/ dir? I tried
adding conf/log4j.properties explicitely in the Manifest's classpath but
it didn't work either.

Nick.


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

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


Mime
View raw message