Explain how to configure filters for structured logs#16592
Open
jamescrosswell wants to merge 2 commits intomasterfrom
Open
Explain how to configure filters for structured logs#16592jamescrosswell wants to merge 2 commits intomasterfrom
jamescrosswell wants to merge 2 commits intomasterfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds documentation explaining how to configure filters for structured logs in both Serilog and Microsoft.Extensions.Logging integrations. It resolves issue #4952 by clarifying that structured log filtering is controlled differently from breadcrumbs and events.
Changes:
- Added explanatory text pointing users to the appropriate logging framework's filtering mechanisms for structured logs
- Added JSON configuration examples alongside existing C# code examples in the Serilog guide
- Added a note in the extensions-logging guide clarifying that filters only apply to breadcrumbs/events, not structured logs
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| docs/platforms/dotnet/guides/serilog/index.mdx | Added explanation about Serilog MinimumLogLevel for structured log filtering and two appsettings.json configuration examples |
| docs/platforms/dotnet/guides/extensions-logging/index.mdx | Added explanation about Microsoft.Extensions.Logging filtering, updated example configuration, and added a note clarifying filter scope |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jamescrosswell
commented
Feb 26, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cc: @Flash0ver for review
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes: