Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Serilog.Sinks.FastConsole/FastConsoleSink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<LogEvent?> _queue;
private readonly Task _worker;
Expand Down