Skip to content

Document using logging config from existing configuration object #18444

Closed
@captainsafia

Description

@captainsafia

The current logging docs in Blazor show how you can add logging config using an in-memory property or the ILoggingBuild API methods.

We don't showcase how you can read the logging config included in your appsettings.json file.

To do this, the user needs to invoke builder.Logging.AddConfiguration(builder.Configuration.GetSection("Logging")) in their startup logic.

More context at dotnet/aspnetcore#20969.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions