resharper-structured-logging icon indicating copy to clipboard operation
resharper-structured-logging copied to clipboard

Possibility for configuring custom InconsistentLogPropertyNaming

Open olsh opened this issue 3 years ago • 0 comments

Discussed in https://github.com/olsh/resharper-structured-logging/discussions/50

Originally posted by corey-re-leased November 4, 2021 Hi,

Within our team, we use prefixes to our Log Properties to allow for filtering in Serilog Seq.

This is demonstrated below: _logger.LogInformation("Starting Execution of {RLS_FunctionName}", functionName);

Unfortunately, this is leading to InconsistentLogPropertyNaming message: suggested name is RlsFunctionName

I was wondering whether you could implement some sort of configuration to exclude some custom LogPropertyNaming patterns?

Thanks, Corey

olsh avatar Nov 09 '21 07:11 olsh