Issue
There are several log file levels and each of them is logging something different.
Solution
Listed below are the allowed log levels with an explanation and example when to use it:
1) Fatal

  • This is the Highest log level, only the most important information is logged using this level.
  • There are few entries of this type in the log file.

2) Error

  • This is a high log level. For example, this is where the¬†application crashes/exceptions are logged.
  • There are an average number of entries of this type in the log file.

3) Warn

  • This is a high log level. For example, this is used to log incorrect behavior where the application is still able to continue.
  • There are an average number of entries of this type in the log file.

4) Info

  • This is the default log level. This level is used for normal behavior, like item export.
  • There are an average number of entries of this type in the log file.

5) Debug

  • This is a low log level. For example, this is used to log executed queries, user authentication, expired sessions, etc.
  • There are an average number of entries of this type in the log file.

6) Trace

  • This is the lowest log level. This is used in instances where everything is logged, such as begin method X, end method X, etc.
  • The log contains the most entries of this level.
Print Friendly, PDF & Email