August 2017
Intermediate to advanced
330 pages
7h 26m
English
The log information that is written will have a different level based on the severity of the information being written. The following table depicts the log level in ASP.NET Core in ascending order:
|
Log level |
Written as |
Remarks |
|
Trace = 0 |
_logger.LogTrace (...) |
Part of developer debugging. Can include sensitive information. |
|
Debug = 1 |
_logger.LogDebug (...) |
Part of developer debugging. Used most of the time. |
|
Information = 2 |
_logger.LogInformation(...) |
Flow of application can be logged here. Not meant for debugging. |
|
Warning = 3 |
_logger.LogWarning (...) |
For unexpected events. For example, data doesn't match business rules. |
|
Error = 4 |
_logger.LogError (...) |
Unhandled events of application; ... |
Read now
Unlock full access