Sharing some naming conventions is a key point to make it possible for a team to efficiently collaborate. This rule checks that the logger field or property name matches a provided regular expression.
The rule supports the most popular logging frameworks:
Update the name of the field or property to follow the configured naming convention. By default, the following names are considered compliant:
{logger} {_logger} {Logger} {_Logger} {log} {_log}
private readonly ILogger myLogger; // Noncompliant
public ILogger MyLogger { get; set; } // Noncompliant
private readonly ILogger logger; // Compliant
public ILogger Logger { get; set; } // Compliant