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

17,247

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]
Share:
17,247
shashantrika
Author by

shashantrika

Updated on June 20, 2022

Comments

  • shashantrika
    shashantrika almost 2 years

    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
  • Stefan Feuerhahn
    Stefan Feuerhahn about 4 years
    also level ALL maps to TRACE and level OFF to ERROR