For a while now I have used Log4j as the primary logging implementation. There was always a battle of what to do when a application moves from development into the various other environments. Should the ops guys manualy have to edit the log4j.properties files to turn the logging level from DEBUG to INFO for every install, or do we, upon making a release, alter the log4j.properties for a release?
Supply two log4j properties files, one for development only called log4j-dev.properties, one for non development called the standard name log4j.properties. In the environments development environments set a JVM property to use the log4j-dev.properties file, other environments use the default log4j.properties file
-Dog4j.configuration=log4j-dev.properties