Most logging frameworks support the ability to specify a log level or the severity of each log entry that is created. Although the log levels vary depending on the framework used, some common log levels include the following:
- TRACE: Use this level for tracing the code, such as being able to see when execution flow enters and exits specific methods.
- DEBUG: This level records diagnostic details that can be helpful during debugging. It can be used to make note of when certain aspects of the logic are completed successfully. It can also provide details such as executed queries and session information, which can be used in determining the cause of an issue.
- INFO: This level is for logging details about normal operations ...