Look into disabling the logging IsEnabled check
Open
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
Assessment
This issue has not been assessed yet.