Skip to content

Conversation

@snakefoot
Copy link
Contributor

@snakefoot snakefoot commented Dec 7, 2025

NLog has its own parsing and rendering, but now also gets the additional overhead from Akka's parsing / allocations. I think it should either be Akka or NLog handling the structured logging. I can see Serilog is allowed to handle the structured logging alone (parses and renders). Any reason why NLog is forced to call LogEventExtensions.TryGetProperties() ?

I find it strange that when calling Akka's LogMessage.ToString() and using semantic logging, then Akka-Formatter explodes in your face (Because string.Format only handles positional parameters).

Also strange that Akka LogMessage only supports message-template-properties. I find message-template properties very organic and error-prone (case-sensitive, spelling, etc.) compared to explicit "building" the LogEvent.

@snakefoot
Copy link
Contributor Author

@Aaronontheweb Ready for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant