aspose file tools*
The moose likes Other Open Source Projects and the fly likes log4j does not works because it says there is no appender Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "log4j does not works because it says there is no appender" Watch "log4j does not works because it says there is no appender" New topic
Author

log4j does not works because it says there is no appender

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Thank you for reading my post.
I have a problem learning log4j , i create a class like :



and a log4j.properties file in the same package that my java class is there.
the properties file is like :


but when i run my application it say :

log4j:WARN No appenders could be found for logger (del_logging.Main).
log4j:WARN Please initialize the log4j system properly.


can some one take a look and help me out ?

Thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18989
    
    8

That almost always means the properties file isn't in your classpath.
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
If you are running that on the command line add "-Dlog4j.debug" to see some debug on the startup configuration.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: log4j does not works because it says there is no appender