Closed NRLOG closed 3 years ago
I'd suggest reposting on stackoverflow.com; there are hundreds of thousands of systems using Serilog.Sinks.Async, and the chances are there's a good reason specific to your app and/or config which is resulting in the behavior you are seeing - this is a pretty good ans straightforward SELECT
and is likely not broken.
You'll get many more eyes on your question on stack overflow. Its important to include as much context as you have:-
Hello, I use Serilog async logging and while doing performance testing with multiple users we found that serilog is taking all the CPU (up to 100%). ASP.net code creates log file using Serilog Async (log.info, log.warning, log.error) and it has logging on all web pages due to security logging requirements. CPU usage spikes after 2 hours and remains 100% continuously and system is getting major performance hit.
We also tested application without serilog logging into file and system is working complete file with no CPU spike so it has to do something with Serilog async.
I would really appreciate if I get any help here. I can share code (logger class) I created if needed.