10 lines
726 B
Plaintext
10 lines
726 B
Plaintext
![]() |
== Why is this an issue?
|
||
|
|
||
|
Most logging frameworks have methods that take a log level, an event ID or an exception as a separate input next to the log format and its arguments. There is a high chance that if the log level, the event ID or the exception are passed as the arguments to the message format, it was a mistake. This rule is going to raise in that scenario.
|
||
|
|
||
|
The rule covers the following logging frameworks:
|
||
|
|
||
|
* Nuget package - https://www.nuget.org/packages/Castle.Core[Castle.Core]
|
||
|
* Nuget package - https://www.nuget.org/packages/Serilog[Serilog]
|
||
|
* Nuget package - https://www.nuget.org/packages/NLog[NLog]
|
||
|
* Nuget package - https://www.nuget.org/packages/Microsoft.Extensions.Logging[Microsoft.Extensions.Logging]
|