Overview

There are several logging levels in log files, that vary in severity.

Solution

Here are listed all allowed logging levels in order from most severe to least severe along with explanation and example when to use it:

  • Fatal

– The highest log level, only the most important information is logged
– Minimum entries in the log file

  • Error

– High log level, application crashes/exceptions are logged
– Average number of entries in the log file

  • Warn

– High log level, incorrect behavior but the application can continue
– Average number of entries in the log file

  • Info

– Default log level, logging contains all above, used for normal behavior like item export
– Average number of entries in the log file

  • Debug

– Low log level, executed queries, user authenticated, session expired, etc
– Average number of entries in the log file

  • Trace

– The lowest log level, everything is logged, begin method X, end method X, etc.
– Maximal number of entries in the log file

Print Friendly, PDF & Email