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

查看:224
本文介绍了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!

推荐答案

此表可能对您有帮助:

在第一列中,您将看到该日志在每个级别上的工作方式.即对于警告,(致命,错误和警告)将可见.对于关闭,将看不到任何内容.

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天全站免登陆