Skip to content
EntityQ1056934· pop 7· linked from 13 articles

Also known as Simple Logging Facade for Java

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, Log4j, Reload4j, Logback or tinylog.

Source code

The Simple Logging Facade for Java (SLF4J) serves as a simple facade or abstraction for various logging frameworks (e.g. java.util.logging, logback, reload4j, log4j 2.x, logevents, penna, rainbowgum, tinylog) allowing the end user to plug in the desired logging framework at deployment time. In case of problems please do not hesitate to post an e-mail message on the [email protected] mailing list or to start a discussion on github. However, please do not directly e-mail SLF4J developers. The answer to your question might be useful to other users. Moreover, there are many knowledgeable users on the slf4j-user mailing lists who can quickly answer your questions. SLF4J version 2.0.x will run under Java 8 but requires Java 9 or later to build. If you are interested in improving SLF4J, that is great! The SLF4J community looks forward to your contribution. Please follow this process: 1. Start a discussion on the slf4j-dev mailing list about your proposed change. Alternately, file a bug report on github to initiate the discussion. 2. Fork qos-ch/slf4j. Ideally, create a new branch from your fork for your contribution to make it easier to merge your changes back. 3. Make your changes on the branch created in Step 2. Be sure that your code passes existing unit tests. Please add unit tests for your work if appropriate. It usually is. 4. All commits must have signed off by the contributor attesting to Developer Certificate of Origin (DCO). Commits without sign off will be automatically rejected by the DCO GitHub check application.

Excerpt from the source-code README · 2,711 chars · not written by Vinony

Wikidata facts

Official website
www.slf4j.org
Show 4 more facts
software version identifier
2.0.17
Commons category
SLF4J
source code repository URL
github.com/qos-ch/slf4j
Sources (5)

via Wikidata · CC0

~4 min read

Article

8 sections
Contents
  • Similarities and differences with log4j 1.x
  • Similarities and differences with log4j 2.x
  • Version history
  • Version 2
  • Version 1
  • See also
  • References
  • External links

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, Log4j, Reload4j, Logback or tinylog.

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.

Available in 6 languages

via Wikidata sitelinks · CC0

Connections

Categories