Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CA1873: Avoid potentially expensive logging #7290

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 15, 2024

  1. Add CA1873: Avoid potentially expensive logging

    This analyzer detects calls to 'ILogger.Log', extension methods in
    'Microsoft.Extensions.Logging.LoggerExtensions' and methods decorated
    with '[LoggerMessage]'.
    It then checks if they evaluate expensive arguments without checking if
    logging is enabled with 'ILogger.IsEnabled'.
    mpidash committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    ec39a35 View commit details
    Browse the repository at this point in the history