Updated link to LoggerExtensions.cs (aspnet/Extensions). (#10368)
parent
947aac77c5
commit
8adbade922
|
@ -4,7 +4,7 @@ author: tdykstra
|
|||
description: Learn about the logging framework in ASP.NET Core. Discover the built-in logging providers and learn more about popular third-party providers.
|
||||
ms.author: tdykstra
|
||||
ms.custom: mvc
|
||||
ms.date: 10/11/2018
|
||||
ms.date: 01/14/2019
|
||||
uid: fundamentals/logging/index
|
||||
---
|
||||
# Logging in ASP.NET Core
|
||||
|
@ -266,7 +266,7 @@ The following code creates `Information` and `Warning` logs:
|
|||
|
||||
In the preceding code, the first parameter is the [Log event ID](#log-event-id). The second parameter is a message template with placeholders for argument values provided by the remaining method parameters. The method parameters are explained in the [message template section](#log-message-template) later in this article.
|
||||
|
||||
Log methods that include the level in the method name (for example, `LogInformation` and `LogWarning`) are [extension methods for ILogger](xref:Microsoft.Extensions.Logging.LoggerExtensions). These methods call a `Log` method that takes a `LogLevel` parameter. You can call the `Log` method directly rather than one of these extension methods, but the syntax is relatively complicated. For more information, see <xref:Microsoft.Extensions.Logging.ILogger> and the [logger extensions source code](https://github.com/aspnet/Logging/blob/master/src/Microsoft.Extensions.Logging.Abstractions/LoggerExtensions.cs).
|
||||
Log methods that include the level in the method name (for example, `LogInformation` and `LogWarning`) are [extension methods for ILogger](xref:Microsoft.Extensions.Logging.LoggerExtensions). These methods call a `Log` method that takes a `LogLevel` parameter. You can call the `Log` method directly rather than one of these extension methods, but the syntax is relatively complicated. For more information, see <xref:Microsoft.Extensions.Logging.ILogger> and the [logger extensions source code](https://github.com/aspnet/Extensions/blob/release/2.2/src/Logging/Logging.Abstractions/src/LoggerExtensions.cs).
|
||||
|
||||
ASP.NET Core defines the following log levels, ordered here from lowest to highest severity.
|
||||
|
||||
|
|
Loading…
Reference in New Issue