SlimMessageBus icon indicating copy to clipboard operation
SlimMessageBus copied to clipboard

[Host] High Performance Logging

Open zarusz opened this issue 1 year ago • 2 comments

Currently, most log statements use the logging extension methods to log information. We could use the following to avoid the logging overhead and make it faster:

  • For netstandard2.0 use https://learn.microsoft.com/en-us/dotnet/core/extensions/high-performance-logging
  • For net6.0 onwards use https://learn.microsoft.com/en-us/dotnet/core/extensions/logger-message-generator

zarusz avatar Nov 02 '24 09:11 zarusz

if not to change anything

https://github.com/stbychkov/AutoLoggerMessage

dundich avatar Jan 21 '25 13:01 dundich

I don't think it will work as target netstandard2.0 and net6.0, there's a call out:

As this solution is based on interceptors, only .NET 8+ is supported

zarusz avatar Jan 21 '25 21:01 zarusz