lamadaemon
lamadaemon

Reputation: 75

How to disable slf4j in jetty

I am using a self code logger and i dont want implement to slf4j.

And Jetty will prints:

SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.

How to disable this stupid output?

Im not using Spring or something like that. I just import jetty library and it prints...

Upvotes: 2

Views: 398

Answers (1)

lamadaemon
lamadaemon

Reputation: 75

Use a slf4j-nop logger

Add this in dependencies block of build.gradle

kotlin DSL:

implementation("org.slf4j:slf4j-nop:2.0.0-alpha1")

Upvotes: 3

Related Questions