Difference between Simple Logging Facade for Java and Apache Commons Logging

前端 未结 3 1084
梦谈多话
梦谈多话 2021-01-31 16:43

What is the difference between Simple Logging Facade for Java and Apache Commons Logging?

3条回答
  •  长情又很酷
    2021-01-31 16:46

    From the SLF4J FAQ:

    SLF4J is conceptually very similar to JCL. As such, it can be thought of as yet another logging facade. However, SLF4J is much simpler in design and arguably more robust. In a nutshell, SLF4J avoid the class loader issues that plague JCL.

    Do a google for "JCL classloader issues" for more on this...

提交回复
热议问题