logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Upshall <rupsh...@psasoft.com>
Subject log4j.properties on iSeries/AS400
Date Fri, 23 Jul 2004 21:17:40 GMT
I cannot get the log4j to find the properties file.  I have put in the
classpath and also set the log4j.configuration property and still
nothing.

Here is the command line:

 > java -Dlog4j.debug=true
-Dlog4j.configuration=/home/ru/log4j.properties MyClass


Here is the output:

log4j: Trying to find [/home/ru/log4j.properties] using context
classloader s
   un.misc.Launcher$AppClassLoader@f719bd00.
   log4j: Trying to find [/home/ru/log4j.properties] using
sun.misc.Launcher$App
   ClassLoader@f719bd00 class loader.
   log4j: Trying to find [/home/ru/log4j.properties] using
ClassLoader.getSystem
   Resource().
   log4j: Could not find resource: [/home/ru/log4j.properties].
   log4j:WARN No appenders could be found for logger
(com.psasoft.sprint.Switch)
   .
   log4j:WARN Please initialize the log4j system
properly.                                                       



Can somebody please help, I need to get this code ported.

Robert



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