Avoid Warnings to log

Hi Please help me on this,

I am using ASP.NET Core 2.1 with sentry.
I want to log only errors .So how can i disable warning logging.

regards,
Biju

You can use code:

builder.UseSentry(o => o.MinimumEventLevel = LogLevel.Error)

Or config, appsettings.json:

"Sentry": { "MinimumEventLevel": "Error" }

To configure the minimum level to record as breadcrumb you can use MinimumBreadcrumbLevel.

Examples here: https://github.com/getsentry/sentry-dotnet/blob/master/samples/Sentry.Samples.AspNetCore.Mvc/appsettings.json

Sentry