dotnet / dotnet/efcore

Disable `Microsoft.Extensions.Logging` logging on a DbContext instance

Open
#28,639 5 comments 0 reactions 0 assignees View on GitHub
area-logging customer-reported needs-design
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

Having queries and execution times in log is awesome feature, but for some queries it's not that useful and can generate a lot of noise.
For example when inserting or updating tons of records, log output is not really useful.

It would be nice if we could disable log on a context instance. For example context.DisableLogging() or something like that.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.