dotnet / dotnet/efcore

Look into disabling the logging IsEnabled check

Open
#27,054 0 comments 2 reactions 0 assignees View on GitHub
area-global area-logging area-perf
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

.NET 6.0 added an option to disable the internal IsEnabled check done by LoggerMessage.Define delegates (https://github.com/dotnet/runtime/issues/45290).

IIRC we already check in our own logging infra code before we call the logger, since it may be possible to disable that check inside the logger.

/cc @ajcvickers

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.