shashantrika
shashantrika

Reputation: 1089

How to map levels of java.util.logging and SLF4J logger?

How do logging levels from java.util.logging map to SLF4J?

SLF4J

java.util.logging

Upvotes: 42

Views: 22425

Answers (1)

jmehrens
jmehrens

Reputation: 11035

From the SLF4JBridgeHandler docs and testing (annotated with brackets):

[ALL    -> TRACE]
FINEST  -> TRACE
FINER   -> DEBUG
FINE    -> DEBUG
[CONFIG -> INFO]
INFO    -> INFO
WARNING -> WARN
SEVERE  -> ERROR
[OFF    -> ERROR]

Upvotes: 84

Related Questions