Skip to content

Commit 5d3889d

Browse files
authored
Fixed Built-in logging providers links in index.md (#18340)
1 parent ae82d62 commit 5d3889d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

aspnetcore/fundamentals/logging/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ The default ASP.NET Core web app templates:
3030

3131
* Use the [Generic Host](xref:fundamentals/host/generic-host).
3232
* Call <xref:Microsoft.Extensions.Hosting.Host.CreateDefaultBuilder%2A>, which adds the following logging providers:
33-
* [Console](#console-provider)
34-
* [Debug](#debug-provider)
35-
* [EventSource](#event-source-provider)
33+
* [Console](#console)
34+
* [Debug](#debug)
35+
* [EventSource](#event-source)
3636
* [EventLog](#welog) : Windows only
3737

3838
[!code-csharp[](index/samples/3.x/TodoApiDTO/Program.cs?name=snippet_TemplateCode&highlight=9)]
@@ -42,7 +42,7 @@ The preceding code shows the `Program` class created with the ASP.NET Core web a
4242
To override the default set of logging providers added by `Host.CreateDefaultBuilder`, call `ClearProviders` and add the required logging providers. For example, the following code:
4343

4444
* Calls <xref:Microsoft.Extensions.Logging.LoggingBuilderExtensions.ClearProviders%2A> to remove all the <xref:Microsoft.Extensions.Logging.ILoggerProvider> instances from the builder.
45-
* Adds the [Console](#console-provider) logging provider.
45+
* Adds the [Console](#console) logging provider.
4646

4747
[!code-csharp[](index/samples/3.x/TodoApiDTO/Program.cs?name=snippet_AddProvider&highlight=5-6)]
4848

@@ -401,9 +401,9 @@ Generally, logging should be specified in configuration and not code.
401401

402402
ASP.NET Core includes the following logging providers:
403403

404-
* [Console](#console-provider)
405-
* [Debug](#debug-provider)
406-
* [EventSource](#event-source-provider)
404+
* [Console](#console)
405+
* [Debug](#debug)
406+
* [EventSource](#event-source)
407407
* [EventLog](#welog)
408408
* [AzureAppServicesFile and AzureAppServicesBlob](#azure-app-service)
409409
* [ApplicationInsights](#azure-application-insights)

0 commit comments

Comments
 (0)