W3CLogger documentation leads to an error and does not explain where the logs can be found #33592
Labels
aspnet-core/svc
fundamentals/subsvc
Source - Docs.ms
Docs Customer feedback via GitHub Issue
⌚ Not Triaged
Description
When following the current version of the
W3CLogger
docs, it appears that one can enable W3C logging with just the following line:However, this causes the following error during startup:
It is not clearly stated that
builder.Services.AddW3CLogging(...)
is actually necessary like in theHTTP Logging
docs. Additionally, the documentation does not specify where users can find the logs when using the default configuration.Page URL
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/w3c-logger/?view=aspnetcore-8.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/w3c-logger/index.md
Document ID
13e1469d-48c9-5212-27bb-2869dcbbe2a8
Article author
@wtgodbe
The text was updated successfully, but these errors were encountered: