How to initialize log4j properly?

Posted by Janusz on Stack Overflow See other posts from Stack Overflow or by Janusz
Published on 2009-07-16T21:17:29Z Indexed on 2010/05/04 8:28 UTC
Read the original article Hit count: 214

Filed under:
|
|

After adding log4j to my application I get the following output every time I execute my application:

log4j:WARN No appenders could be found for logger (slideselector.facedata.FaceDataParser).
log4j:WARN Please initialize the log4j system properly.

It seems this means a configuration file is missing. Where should this config file be located and what is a good start content?

I'm using plain java for developing a desktop application. So no webserver etc...

© Stack Overflow or respective owner

Related posts about log4j

Related posts about basics