Log4j logging hierarchy order

log4jlogging

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!

Best Answer

This table might be helpful for you:

Log Level

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.