Log levels
In the previous examples, we used the LogInformation
method to log information messages, but there are other levels as well, shown in the following table:
Level |
Method |
Description |
Production |
Trace |
|
This is used to capture detailed information about the program, instrument execution speed, and debugging. You can also log sensitive information when using traces. |
Disabled. |
Debug |
|
This is used to log debugging and development information. |
Disabled unless troubleshooting. |
... |