This has happened to me a few times already to find this kind of code, as a result of excessive copy/pasting :
public class SuperDuperClass{ private static readonly ILogger Logger = Log.ForContext<AnotherUnrelatedClass>(); // snip }
i.e. cases where the SourceContext
will end up not matching the actual containing class. This is quite annoying when you are, later on, trying to figure out the origin of a log event.
It would be nice if we could detect those mismatches and suggest a fix.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4