Tags
JCL and slf4j are both wrapper for logging framework. Which means they need an actual logging framework for them to work. Currently, Spring 3 is using JCL, and we want to switch it to slf4j. Why? Because “slf4j does not suffer from class loader problems or memory leaks observed with JCL“. You may also find the explanation here. Even Spring Team blog mentioned that if they can switch back time, they would use slf4j instead of JCL.
And why need switch from java.util.logging to Logback? It is simply a matter of personal taste. I’d like to explore Logback a bit rather than using default logging framework.
For the detail comparison between various logging framework, you may refer to the following links:
http://stackoverflow.com/questions/354837/whats-up-with-logging-in-java
http://stackoverflow.com/questions/296150/what-are-the-best-practices-to-log-an-error
Enough said about the background on java logging framework, we should move on: Continue reading