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

1

42

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

SLF4J

  • trace
  • debug
  • info
  • warn
  • error
  • fatal

java.util.logging

  • finest
  • finer
  • fine
  • config
  • info
  • warning
  • severe
Cantaloupe answered 27/12, 2013 at 5:35 Comment(0)
I
84

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]
Icsh answered 27/12, 2013 at 20:44 Comment(1)
also level ALL maps to TRACE and level OFF to ERRORBalderdash

© 2022 - 2024 — McMap. All rights reserved.