SLF4J

Simple Logging Facade for Java
Developer(s)Ceki Gülcü
Stable release
2.0.9 / September 3, 2023 (2023-09-03)[1]
Repository
Written inJava
Operating systemCross-platform
TypeLogging Tool
LicenseMIT License
Websitewww.slf4j.org

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]

  1. ^ "SLF4J News". slfj4.org. 2023-09-03.
  2. ^ java.util.logging
  3. ^ logback
  4. ^ tinylog
  5. ^ "SLF4J binding for tinylog". Archived from the original on 2017-12-07. Retrieved 2014-12-16.
  6. ^ "Think again before adopting the commons-logging API"
  7. ^ "Taxonomy of class loader problems encountered when using Jakarta Commons Logging"
  8. ^ "We Analyzed 30,000 GitHub Projects – Here Are The Top 100 Libraries in Java, JS and Ruby". Archived from the original on 2014-07-09. Retrieved 2014-02-09.
  9. ^ Nicolas, Frenkel. ""most popular" section". Twitter. Retrieved 2022-01-16.

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search