You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/fundamentals/logging/index.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,15 +178,15 @@ To explicitly specify the category, call `ILoggerFactory.CreateLogger`:
178
178
179
179
The following table lists the <xref:Microsoft.Extensions.Logging.LogLevel> values, the convenience `Log{LogLevel}` extension method, and the suggested usage:
180
180
181
-
| LogLevel | Value | Method | Description |
182
-
| -------- | ---------| ------------|----- |
183
-
|[Trace](xref:Microsoft.Extensions.Logging.LogLevel)| 0 |[LogTrace](/dotnet/api/microsoft.extensions.logging.loggerextensions.logtrace)| Contain the most detailed messages. These messages may contain sensitive app data. These messages are disabled by default and should ***not*** be enabled in production. |
184
-
|[Debug](xref:Microsoft.Extensions.Logging.LogLevel)| 1 |[LogDebug](/dotnet/api/microsoft.extensions.logging.loggerextensions.logdebug)| For debugging and development. Use with caution in production due to the high volume. |
185
-
|[Information](xref:Microsoft.Extensions.Logging.LogLevel)| 2 |[LogInformation](/dotnet/api/microsoft.extensions.logging.loggerextensions.loginformation)| Tracks the general flow of the app. May have long-term value. |
186
-
|[Warning](xref:Microsoft.Extensions.Logging.LogLevel)| 3 |[LogWarning](/dotnet/api/microsoft.extensions.logging.loggerextensions.logwarning)| For abnormal or unexpected events. Typically includes errors or conditions that don't cause the app to fail.|
187
-
|[Error](xref:Microsoft.Extensions.Logging.LogLevel)| 4 |[LogError](/dotnet/api/microsoft.extensions.logging.loggerextensions.logerror)| For errors and exceptions that cannot be handled. These messages indicate a failure in the current operation or request, not an app-wide failure. |
188
-
|[Critical](xref:Microsoft.Extensions.Logging.LogLevel)| 5|[LogCritical](/dotnet/api/microsoft.extensions.logging.loggerextensions.logcritical)| For failures that require immediate attention. Examples: data loss scenarios, out of disk space. |
189
-
|[`None`| 6|| Specifies that a logging category should not write any messages. |
181
+
| LogLevel | Value | Method | Description |
182
+
| -------- | ----- | ------|----------- |
183
+
|[Trace](xref:Microsoft.Extensions.Logging.LogLevel)| 0 |<xref:Microsoft.Extensions.Logging.LoggerExtensions.LogTrace%2A>| Contain the most detailed messages. These messages may contain sensitive app data. These messages are disabled by default and should ***not*** be enabled in production. |
184
+
|[Debug](xref:Microsoft.Extensions.Logging.LogLevel)| 1 |<xref:Microsoft.Extensions.Logging.LoggerExtensions.LogDebug%2A>| For debugging and development. Use with caution in production due to the high volume. |
185
+
|[Information](xref:Microsoft.Extensions.Logging.LogLevel)| 2 |<xref:Microsoft.Extensions.Logging.LoggerExtensions.LogInformation%2A>| Tracks the general flow of the app. May have long-term value. |
186
+
|[Warning](xref:Microsoft.Extensions.Logging.LogLevel)| 3 |<xref:Microsoft.Extensions.Logging.LoggerExtensions.LogWarning%2A>| For abnormal or unexpected events. Typically includes errors or conditions that don't cause the app to fail. |
187
+
|[Error](xref:Microsoft.Extensions.Logging.LogLevel)| 4 |<xref:Microsoft.Extensions.Logging.LoggerExtensions.LogError%2A>| For errors and exceptions that cannot be handled. These messages indicate a failure in the current operation or request, not an app-wide failure. |
188
+
|[Critical](xref:Microsoft.Extensions.Logging.LogLevel)| 5|<xref:Microsoft.Extensions.Logging.LoggerExtensions.LogCritical%2A>| For failures that require immediate attention. Examples: data loss scenarios, out of disk space. |
189
+
|[None](xref:Microsoft.Extensions.Logging.LogLevel)| 6|| Specifies that a logging category should not write any messages. |
190
190
191
191
In the previous table, the `LogLevel` is listed from lowest to highest severity.
0 commit comments