What is the issue with the runtime discovery algorithm of Apache Commons Logging

Why? What is the issue with its runtime discovery algorithm? Performance? No, it’s not performance, it’s classloader pain. JCL discovery process relies on classloader hacks to find the logging framework at runtime but this mechanism leads to numerous problems including unexpected behavior, hard to debug classloading problems resulting in increased complexity. This is nicely captured … Read more

How to disable Spring logging DEBUG messages?

Spring uses commons-logging which auto-detects the logging framework to use. There are various ways to tune which logging framework will be chosen so the first thing to do is to make sure commons-logging binds to log4j. To do that, start your application with an additional flag -Dorg.apache.commons.logging.diagnostics.dest=STDOUT that will output the result of the discovery … Read more