Skip to content

Commit 3e849e4

Browse files
committed
Force SyncRoot be readonly
1 parent cbccb75 commit 3e849e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serilog.Sinks.Console/ConsoleLoggerConfigurationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Serilog
2828
/// </summary>
2929
public static class ConsoleLoggerConfigurationExtensions
3030
{
31-
static object DefaultSyncRoot = new object();
31+
static readonly object DefaultSyncRoot = new object();
3232
const string DefaultConsoleOutputTemplate = "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}";
3333

3434
/// <summary>

0 commit comments

Comments
 (0)