This paragraph describes how to make a logger add the W3C trace context (trace id, span id, parent id, tc.) to all log messages.
Is there an easy way how I can configure this via appsettings.json without having to hardwire the logging configuration into my C# code?
If so, could you please add a json code snippet to the documentation? Most other paragraphs on said site contain json examples for the configuration options.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 7184a308-a254-9350-a5cd-5bced1f369ae
Version Independent ID: 726e3bf1-f367-d733-8933-bccc04da0e16
This paragraph describes how to make a logger add the W3C trace context (trace id, span id, parent id, tc.) to all log messages.
Is there an easy way how I can configure this via
appsettings.json
without having to hardwire the logging configuration into my C# code? If so, could you please add a json code snippet to the documentation? Most other paragraphs on said site contain json examples for the configuration options.Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Associated WorkItem - 289453