简体   繁体   中英

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

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

From the SLF4JBridgeHandler docs and testing:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM