Registry / logging / slf4j-api

slf4j-api

JSON →
library2.0.18javamavenunverified

The slf4j API provides a simple logging facade for Java.

<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>2.0.18</version> </dependency>
INSTALL
IMPORT
SIG · SLF4J-API
S
slf4j-api
loggingjavav2.0.18
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Logger
org.slf4j.Logger

Basic SLF4J logging usage

import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Example { private static final Logger logger = LoggerFactory.getLogger(Example.class); public void doSomething() { logger.info("Doing something"); } }
Debug
Known issues
gotchaSLF4J requires a binding (e.g., logback-classic) at runtime; otherwise logs are silently dropped.
fix
Add a logging implementation like logback-classic to your classpath.
affects: *
Upgrade
Version history
2.0.18latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
48 hits · last 30 days
node
44
Resources
slf4j-api — mvn dependency:get slf4j-api · libregistry