Developer(s) | Ceki Gülcü |
---|---|
Stable release | 2.0.9
/ September 3, 2023[1] |
Repository | |
Written in | Java |
Operating system | Cross-platform |
Type | Logging Tool |
License | MIT License |
Website | www |
Simple Logging Facade for Java (SLF4J) provides a Java logging API by means of a simple facade pattern. The underlying logging backend is determined at runtime by adding the desired binding to the classpath and may be the standard Sun Java logging package java.util.logging,[2] Log4j, Reload4j, Logback[3] or tinylog.[4][5]
The separation of the client API from the logging backend reduces the coupling between an application and any particular logging framework. This can make it easier to integrate with existing or third-party code or to deliver code into other projects that have already made a choice of logging backend.
SLF4J was created by Ceki Gülcü as a more reliable alternative to Jakarta Commons Logging framework.[6][7] Research in 2013 on 10,000 GitHub projects found that the most popular Java library is SLF4J, along with JUnit, with 30.7% of projects using it.[8] In January 2021, it was ranked as the second most popular project according to mvnrepository.[9]