LogLevel Enum¶
Defines logging severity levels.
- Namespace
Microsoft.Extensions.Logging
- Assemblies
- Microsoft.Extensions.Logging.Abstractions
Fields¶
-
Critical
()¶ Logs that describe an unrecoverable application or system crash, or a catastrophic failure that requires immediate attention.
Return type: Microsoft.Extensions.Logging.LogLevel Critical = 5
-
Debug
()¶ Logs that are used for interactive investigation during development. These logs should primarily contain information useful for debugging and have no long-term value.
Return type: Microsoft.Extensions.Logging.LogLevel Debug = 1
-
Error
()¶ Logs that highlight when the current flow of execution is stopped due to a failure. These should indicate a failure in the current activity, not an application-wide failure.
Return type: Microsoft.Extensions.Logging.LogLevel Error = 4
-
Information
()¶ Logs that track the general flow of the application. These logs should have long-term value.
Return type: Microsoft.Extensions.Logging.LogLevel Information = 2
-
None
()¶ Not used for writing log messages. Specifies that a logging category should not write any messages.
Return type: Microsoft.Extensions.Logging.LogLevel None = 6
-
Trace
()¶ Logs that contain the most detailed messages. These messages may contain sensitive application data. These messages are disabled by default and should never be enabled in a production environment.
Return type: Microsoft.Extensions.Logging.LogLevel Trace = 0
-
Warning
()¶ Logs that highlight an abnormal or unexpected event in the application flow, but do not otherwise cause the application execution to stop.
Return type: Microsoft.Extensions.Logging.LogLevel Warning = 3
-