diff --git a/src/Serilog.Sinks.FastConsole/FastConsoleSink.cs b/src/Serilog.Sinks.FastConsole/FastConsoleSink.cs index 844b503..bbb9f28 100644 --- a/src/Serilog.Sinks.FastConsole/FastConsoleSink.cs +++ b/src/Serilog.Sinks.FastConsole/FastConsoleSink.cs @@ -12,7 +12,11 @@ namespace Serilog.Sinks.FastConsole; public class FastConsoleSink : ILogEventSink, IDisposable { - private static readonly StreamWriter _consoleWriter = new(Console.OpenStandardOutput(), Console.OutputEncoding, 4096, true); + private static readonly StreamWriter _consoleWriter = + new(Console.OpenStandardOutput(), Console.OutputEncoding, 4096, true) + { + AutoFlush = true + }; private readonly StringWriter _bufferWriter = new(); private readonly Channel _queue; private readonly Task _worker;