Add overloads to `Log*` in `LoggerExtensions`
Closed this issue · 2 comments
daniel-white commented
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.
daniel-white commented
Circling back on this. I'm assuming the LoggerMessage.Define
overloads are what should be used instead. Just want clarification. Thanks!
muratg commented
We don't plan to add more extensions. And you're correct about that - LoggerMessage.Define
.