Registry / logging / slf4j-nop

slf4j-nop

JSON →
library2.0.18javamavenunverified

A SLF4J binding that discards all log messages, useful for testing or disabling logging.

<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-nop</artifactId> <version>2.0.18</version> </dependency>
INSTALL
IMPORT
SIG · SLF4J-NOP
S
slf4j-nop
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

Use SLF4J logging with NOP provider (no output)

import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Main { private static final Logger log = LoggerFactory.getLogger(Main.class); public static void main(String[] args) { log.info("This message will be discarded"); } }
Debug
Known issues
gotchaslf4j-nop silently discards all log messages; ensure this is intended for your environment.
fix
Replace with a proper logging implementation like logback or log4j for production.
affects: all
Upgrade
Version history
2.0.18latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
32
Resources