log4j logging hierarchy order

后端 未结 6 456
执念已碎
执念已碎 2020-11-30 16:40

What is the hierarchy of log4j logging?

DEBUG
INFO
WARN
ERROR
FATAL

Which one provides the highest logging which would be helpful to troubl

6条回答
  •  春和景丽
    2020-11-30 16:48

    Hierarchy of log4j logging levels are as follows in Highest to Lowest order :

    • TRACE
    • DEBUG
    • INFO
    • WARN
    • ERROR
    • FATAL
    • OFF

    TRACE log level provides highest logging which would be helpful to troubleshoot issues. DEBUG log level is also very useful to trouble shoot the issues.

    You can also refer this link for more information about log levels : https://logging.apache.org/log4j/2.0/manual/architecture.html

提交回复
热议问题