{"repo":"stbychkov/AutoLoggerMessage","free":true,"listed":false,"github":"https://github.com/stbychkov/AutoLoggerMessage","clone":"git clone https://github.com/stbychkov/AutoLoggerMessage.git","description":"A source generator that automatically migrates your logging calls to the LoggerMessage version","language":"C#","stars":121,"topics":["logging","roslyn","source-generator","csharp","dotnet"],"license":"MIT","category":"analytics","readme_excerpt":"AutoLoggerMessage --- Welcome to AutoLoggerMessage , a source generator that automatically creates LoggerMessage methods, enabling high-performance logging. Demo Click the image below to watch the demo video: Getting started Install the Package from NuGet Check this page for configuration options that can tweak the source generation process. Benchmarks You can achieve performance boosts of up to 90% just by including this source generator in your project. For ILogger.Log methods: Configuration Mean Ratio Allocated ------------------------- ----------- ------- ----------- Default implementation 41.419 ns 1.00 216 B Default + LoggerMessage 4.004 ns 0.10 - AutoLoggerMessage 4.577 ns 0.11 - And for ILogger.DefineScope : Configuration Mean Ratio Allocated ------------------------- ----------- ------- ----------- BeginScope 39.566 ns 1.00 216 B DefineScope 5.197 ns 0.13 - AutoLoggerMessage 5.296 ns 0.13 - Take a look at benchmark page for more details. Known Limitations It supports only static EventId parameter. If you pass the explicit EventId parameter, which basically no one does as far as I can tell, it generates a new EventId and the existing one will be passed to the formatter state, but it won't be logged. This limitation comes from the original LoggerMessage generator as they don't support the explicit parameter yet . Log.Define supports only 6 message parameters (src) so if you pass more than that, the default Logger.Log( , params object[] args) will be executed. As this s","default_branch":null,"files":null,"tree":[],"storefront":"/r/stbychkov","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stbychkov/AutoLoggerMessage/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}