docs(dotnet): Document Serilog per-sink minimum level options#18740
Open
jamescrosswell wants to merge 2 commits into
Open
docs(dotnet): Document Serilog per-sink minimum level options#18740jamescrosswell wants to merge 2 commits into
jamescrosswell wants to merge 2 commits into
Conversation
Sentry.Serilog 6.8.0 adds RestrictedToMinimumLevel and LevelSwitch options so Serilog's per-sink minimum level can be configured in code. Previously this was only possible via appsettings.json, which was painful for MAUI users who configure Serilog in code. Add a section explaining how the per-sink level differs from MinimumBreadcrumbLevel/MinimumEventLevel, with code and appsettings examples, and document the two new options. Refs getsentry/sentry-dotnet#4957 Co-Authored-By: Claude <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
jamescrosswell
commented
Jul 17, 2026
jamescrosswell
commented
Jul 17, 2026
Co-authored-by: James Crosswell <[email protected]>
jamescrosswell
marked this pull request as ready for review
July 17, 2026 03:22
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.
DESCRIBE YOUR PR
Documents the new Serilog per-sink minimum level configuration added in getsentry/sentry-dotnet#5181 (fixes getsentry/sentry-dotnet#4957), shipping in Sentry.Serilog 6.8.0.
MinimumBreadcrumbLevel/MinimumEventLevel, with code andappsettings.jsonexamplesRestrictedToMinimumLevelandLevelSwitchoptionsappsettings.json)Note: the C# snippets were compiled against
sentry-dotnet@mainto confirm they build. The version number in the alert assumes the next release is 6.8.0 — please double-check once it's tagged.IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes:
🤖 Generated with Claude Code