LoggingTemplateMissingValuesAnalyzer
Problem
As param arrays are loosely typed it's easy to miss an expected templated value or even give too many.
do
use factory = LoggerFactory.Create(fun b -> b.AddConsole() |> ignore)
let logger: ILogger = factory.CreateLogger("Program")
logger.Log(LogLevel.Information, "first {one} second {two}", 23)
Fix
Provide the correct number of values:
do
use factory = LoggerFactory.Create(fun b -> b.AddConsole() |> ignore)
let logger: ILogger = factory.CreateLogger("Program")
logger.Log(LogLevel.Information, "first {one} second {two}", 23, 42)
val factory: System.IDisposable
val ignore: value: 'T -> unit
val logger: obj