Difference between Simple Logging Facade for Java and Apache Commons Logging

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

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

3条回答
  •  感情败类
    2021-01-31 16:49

    While SLF4J can be used as a facade over libraries like Log4j, or JUL, it can also be used as an API to implement native logging libraries, like Logback did. A native SLF4J library won't need adapter glue in the middle like the facade for Log4j or JUL does, so it should be more efficient as well.

提交回复
热议问题