Closed gerneio closed 3 years ago
Example of invalid Log statement:
logger?.LogTrace("{2}ms: Executing task {0} {1} ({3} tasks remaining)", item.Task.ToString(), item.RelativePath, sw.ElapsedMilliseconds.ToString(NumberFormatInfo.InvariantInfo).PadLeft(4), queue.Count.ToString(NumberFormatInfo.InvariantInfo));
Thanks for reporting this!
Small issue, one I wasn't aware of until just now, but the ILogger format strings are not being used properly.
According to this SO post:
Here are the official docs on this LogTrace method: LINK
One of the places I noticed this at was within the CleanupWorker.DoTask method, but Looks like you are using the position reference format across all instances where you are logging info. Looks like if you at least keep the order of parameters sequential as compared to how you use them in the string, then it'll work just fine.