Serilog File / RollingFile Shell and Buffering

It looks like a Serilog File / RollingFile receives a stream after each call to the log.

Didn't this fundamental performance succeed? For example, Nlog has a kind of AsyncWrapper for queue log events and recording them in batch files using a background thread.

What are the solutions if I want to minimize the delay when using the file system?

+4
source share
1 answer

Currently, the only option for this is to restore the code itself.

I added https://github.com/serilog/serilog/issues/650 for reliable inclusion in the upcoming Serilog v2.

+4

Source: https://habr.com/ru/post/1626045/


All Articles