diff --git a/docs/platforms/dotnet/guides/serilog/index.mdx b/docs/platforms/dotnet/guides/serilog/index.mdx index 260b4794ef35a..3b2f31a37737d 100644 --- a/docs/platforms/dotnet/guides/serilog/index.mdx +++ b/docs/platforms/dotnet/guides/serilog/index.mdx @@ -123,6 +123,22 @@ A `LogLevel` which indicates the minimum level a log message has to be sent to S Whether or not this integration should initialize the SDK. If you intend to call `SentrySdk.Init` yourself you should set this flag to `false`. +#### RestrictedToMinimumLevel + +`MinimumBreadcrumbLevel` and `MinimumEventLevel` determine what the sink does with a log event, but every log event the logger captures still reaches the sink. If your logger's minimum level is verbose — for example, because another sink writes debug logs to a file — you can use Serilog's [per-sink minimum level](https://github.com/serilog/serilog/wiki/Configuration-Basics#overriding-per-sink) to stop lower-level log events from reaching Sentry entirely. + +By default this value is `Verbose`, meaning no log events are filtered out. Ignored when `LevelSwitch` is set. + + + +This also controls which log entries are sent to Sentry as [structured logs](logs/) + + + +#### LevelSwitch + +An optional `LoggingLevelSwitch` that allows the sink's minimum level to be changed at runtime. + ## Verify This snippet includes an intentional error, so you can test that everything is working as soon as you set it up.