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

前端 未结 1 559
误落风尘
误落风尘 2020-12-28 15:32

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

SLF4J

  • trace
  • debug
  • info
  • warn
  • error
相关标签:
1条回答
  • 2020-12-28 16:01

    From the SLF4JBridgeHandler docs and testing:

    ALL     -> TRACE
    FINEST  -> TRACE
    FINER   -> DEBUG
    FINE    -> DEBUG
    CONFIG  -> INFO
    INFO    -> INFO
    WARNING -> WARN
    SEVERE  -> ERROR
    OFF     -> ERROR
    
    0 讨论(0)
提交回复
热议问题