aspnet/Logging

Add overloads to `Log*` in `LoggerExtensions`

Closed this issue · 2 comments

It would be great if there were additional extension methods in LoggerExtensions that would avoid allocating the object[] when the log level is not turned up. String.Format has overloads that takes up to 3 additional arguments that don't require a object[] to be allocated.

Circling back on this. I'm assuming the LoggerMessage.Define overloads are what should be used instead. Just want clarification. Thanks!

We don't plan to add more extensions. And you're correct about that - LoggerMessage.Define.