# SLF4J

> Simple Logging Facade for Java

Source: https://talira.ai/catalog/slf4j-5mhjbptm
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [observability / logging](https://talira.ai/categories/observability/logging), [languages / java](https://talira.ai/categories/languages/java)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source; QOS.ch sells support contracts.
- Free tier: yes[^1]
- Backed by: [QOS.ch](https://talira.ai/orgs/qos-ch.md)

SLF4J (Simple Logging Facade for Java) is a logging API for Java that sits in front of a real logging framework (java.util.logging, logback, log4j and others), so a library logs through slf4j-api and the application picks the framework at deployment time. With no provider on the class path it falls back to a no-op logger. Bridges route commons-logging, log4j and java.util.logging calls into SLF4J, and a migrator tool moves source files to its API. The 2.0.x series needs Java 8, adds a backward-compatible fluent logging API and is modularized for JPMS. QOS.ch, which also makes logback, maintains it and sells support contracts.

## Links

- Website: https://www.slf4j.org/
- GitHub: https://github.com/qos-ch/slf4j
- Docs: https://www.slf4j.org/manual.html

## Problems it solves

- let my Java library log without forcing a logging framework on its users
- switch a Java app between logback and log4j without changing code
- send commons-logging and java.util.logging output from dependencies into one logger
- a standard logging API for Java and Kotlin

## Features

- one API in front of logback, log4j, java.util.logging and others
- no-op fallback when no provider is present
- bridges for commons-logging, log4j and java.util.logging
- fluent logging API (2.0.x)
- JPMS modules
- migrator tool

## Trust

Overall: 0.27 out of 1.
Signals: backing 0.30, extensibility 0.00.

- backed by QOS.ch

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Logback](https://talira.ai/catalog/logback-bec72cmj.md): A reliable, fast and flexible logging framework for Java, successor to log4j 1.x
- [Seq](https://talira.ai/catalog/seq-5tb5zkg4.md): Self-hosted search and alerting for structured logs, traces and metrics

## Sources

[^1]: https://www.slf4j.org/ (checked 23 Nov 2026)
[^2]: https://github.com/qos-ch/slf4j/blob/master/LICENSE.txt (checked 23 Nov 2026)
