NLog.Extensions.Logging icon indicating copy to clipboard operation
NLog.Extensions.Logging copied to clipboard

Consider injecting EventId properties as normal message template parameters

Open snakefoot opened this issue 2 years ago • 0 comments

When receiving LogEvent that both contains message-template-parameters and EventId, then NLog will allocate both a message-template-parameter-array and also message-properties-dictionary (for eventid).

Maybe consider injecting EventId into the list of message-template-parameter, when message-template has been parsed as being "simple" (Not positional-placeholders and Not message-template-syntax and Not ParseMessageTemplates-option enabled).

snakefoot avatar Oct 25 '21 21:10 snakefoot