log4j logging hierarchy order

Mike picture Mike · Oct 12, 2011 · Viewed 215.9k times · Source

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!

Answer

Hoa Nguyen picture Hoa Nguyen · May 11, 2016

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.