Troubleshooting logging configuration (Log4j, commons-logging)

Did it ever happen to you that your logging didn’t behave as expected? Here are some tips how to find out what’s going on. Commons-logging (since 1.1) Set the system property org.apache.commons.logging.diagnostics.dest to STDOUT (or STDERR or a file name); docs: -Dorg.apache.commons.logging.diagnostics.dest=STDOUT Extract of a sample output (no commons-logging.properties): Extract of a sample output (incorrectContinue reading “Troubleshooting logging configuration (Log4j, commons-logging)”