I'm trying to get my
Java app to use log4j. I've stored my log4j.properties
file in the same directory as my TestLogging.class file but Log4j does not find the properties file there. What did I do wrong?
When I run my program I get these messages:
log4j: Trying to find [log4j.xml] using context classloader sun.misc.Launcher$AppClassLoader@12f6684.
log4j: Trying to find [log4j.xml] using sun.misc.Launcher$AppClassLoader@12f6684 class loader.
log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
log4j: Trying to find [log4j.properties] using context classloader sun.misc.Launcher$AppClassLoader@12f6684.
log4j: Trying to find [log4j.properties] using sun.misc.Launcher$AppClassLoader@12f6684 class loader.
log4j: Trying to find [log4j.properties] using ClassLoader.getSystemResource().
log4j: Could not find resource: [null].
log4j:WARN No appenders could be found for logger (logging.TestLogging).
log4j:WARN Please initialize the log4j system properly.
thanks for any clues,
Rich Smyth.