Skip to content

Commit

Permalink
Merge pull request #65 from nblumhardt/shared-locking
Browse files Browse the repository at this point in the history
Synchronize writes across all instances of ConsoleSink
  • Loading branch information
nblumhardt authored Aug 2, 2019
2 parents a00fb7c + be0da3d commit 7737b6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ConsoleSink : ILogEventSink
readonly LogEventLevel? _standardErrorFromLevel;
readonly ConsoleTheme _theme;
readonly ITextFormatter _formatter;
readonly object _syncRoot = new object();
static readonly object _syncRoot = new object();

const int DefaultWriteBufferCapacity = 256;

Expand Down

0 comments on commit 7737b6d

Please sign in to comment.