Friday, 16 January 2009

Debugging log4j itself

Problem: You cannot find out which log4j.properties file is used.

Try running VM with parameter
-Dlog4j.debug

You'll get info about log4j properties in console.

See: http://logging.apache.org/log4j/1.2/manual.html

1 comment:

Laurentiu Delcea said...

This works great, I had a project with multiple maven modules and I was not sure what properties log4j would load.

Thank you!

Popular Posts