An asynchronous lock free ring buffer for logging
In this blog post, I showcase a very simple lock-free ring buffer for logging. I'll show why it's useful and how it works.
In this blog post, I showcase a very simple lock-free ring buffer for logging. I'll show why it's useful and how it works.
The latest version of the .NET (version 8) has introduced a "better" way of logging. This new way of logging is more flexible and enhanced than the previous versions. It is about the LoggerMessageAttribute
.
Since .NET6 we have the possibility to define an easy way of logging common statements:
Meet Compile-time logging source generators. This article will show why we have them and how to use them. Of course a smaller benchmark will also follow.