log4j 日志记录层次结构顺序 [英] log4j logging hierarchy order

查看:36
本文介绍了log4j 日志记录层次结构顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

log4j 日志的层次结构是什么?

What is the hierarchy of log4j logging?

DEBUG
INFO
WARN
ERROR
FATAL

哪一个提供了有助于解决问题的最高日志记录?任何人都可以提供从最高到最低记录的顺序或层次结构吗?谢谢!

Which one provides the highest logging which would be helpful to troubleshoot issues? Can any one provide the order or hierarchy in which logging take place from highest to lowest? Thanks!

推荐答案

这张表可能对你有帮助:

This table might be helpful for you:

沿着第一列向下,您将看到日志在每个级别中的工作方式.即对于 WARN,(FATAL、ERROR 和 WARN)将是可见的.对于OFF,什么都看不到.

Going down the first column, you will see how the log works in each level. i.e for WARN, (FATAL, ERROR and WARN) will be visible. For OFF, nothing will be visible.

这篇关于log4j 日志记录层次结构顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆