Tuesday, August 01, 2006

Reloading log4j.properties

Bright-Green.com: How To Re-read log4j.properties is a nice short post on how to re-read a log4j properties file. On our java project we were calling PropertyConfigurator.configure(filename); but never calling LogManager.resetConfiguration(); which meant if you removed a logging property from the configuration and reloaded it it carried on logging. It is a shame that the log4j APIs are so badly documented. LogManager being an example.


Pip said...

I've been using Log4J for about 6 years or so now, and still think it's probably the worst-documented library I've ever used.

Anonymous said...

I am there with you. The documentation goes round and round and gets nowhere. You would need to search, search, search, try, try and try to verify things.