Hi Ray,
I suggest you read the Default Initialization Procedure section of the log4j
manual at http://logging.apache.org/log4j/1.2/manual.html to get yourself
acquainted with how log4j searches for your configuration.
If all else fails you can use -Dlog4j.configuration=
You should only define the path and not also the file:
CLASSPATH=%CLASSPATH%;C:\eclipse\workspace\monitor\monitorClient\src\config
Instead of
CLASSPATH=%CLASSPATH%;C:\eclipse\workspace\monitor\monitorClient\src\config\log4j.xml
-Ursprüngliche Nachricht-
Von: raybristol
Thanks very much for your reply!
Michael Erskine wrote:
Hi Ray,
I suggest you read the Default Initialization Procedure section of the
log4j manual at http://logging.apache.org/log4j/1.2/manual.html to get
yourself acquainted with how log4j searches for your configuration.
If all
You are right, thanks so so much!
Bender Heri wrote:
You should only define the path and not also the file:
CLASSPATH=%CLASSPATH%;C:\eclipse\workspace\monitor\monitorClient\src\config
Instead of
CLASSPATH=%CLASSPATH%;C:\eclipse\workspace\monitor\monitorClient\src\config\log4j.xml
Hi experts,
I got a very common problem: no appenders could be found for logger
I was search the answer online, I can see this is caused by not setting the
log4j.xml (or properties) file in classpaths, however I think I set it, if I
do each %CLASSPATH%, then I can see log4j.xml is in there, I