Skip to content

docs(dotnet): Document Serilog per-sink minimum level options#18740

Open
jamescrosswell wants to merge 2 commits into
masterfrom
jamescrosswell/docs/serilog-restricted-to-minimum-level
Open

docs(dotnet): Document Serilog per-sink minimum level options#18740
jamescrosswell wants to merge 2 commits into
masterfrom
jamescrosswell/docs/serilog-restricted-to-minimum-level

Conversation

@jamescrosswell

Copy link
Copy Markdown
Collaborator

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.

  • Adds a "Filtering Which Log Events Reach Sentry" section to the Serilog guide explaining how the per-sink minimum level differs from MinimumBreadcrumbLevel/MinimumEventLevel, with code and appsettings.json examples
  • Documents the new RestrictedToMinimumLevel and LevelSwitch options
  • Notes that configuring this in code requires Sentry.Serilog 6.8.0+ (previously only possible via appsettings.json)

Note: the C# snippets were compiled against sentry-dotnet@main to 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.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

🤖 Generated with Claude Code

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]>
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview Jul 17, 2026 3:10am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Jul 17, 2026 3:10am

Request Review

Comment thread docs/platforms/dotnet/guides/serilog/index.mdx Outdated
Comment thread docs/platforms/dotnet/guides/serilog/index.mdx Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support restrictedToMinimumLevel when configuring Serilog in code

1 participant