diff --git a/sample/Sample/Program.cs b/sample/Sample/Program.cs index 6f38d36..898cddc 100644 --- a/sample/Sample/Program.cs +++ b/sample/Sample/Program.cs @@ -4,8 +4,6 @@ using Serilog; using Serilog.Core; -AppContext.SetSwitch("Serilog.Parsing.MessageTemplateParser.AcceptDottedPropertyNames", true); - // By sharing between the Seq sink and logger itself, // Seq API keys can be used to control the level of the whole logging pipeline. var levelSwitch = new LoggingLevelSwitch(); @@ -22,7 +20,7 @@ foreach (var i in Enumerable.Range(0, 100)) { - Log.Information("Running loop {Counter.I}, switch is at {Level}", i, levelSwitch.MinimumLevel); + Log.Information("Running loop {Counter}, switch is at {Level}", i, levelSwitch.MinimumLevel); Thread.Sleep(1000); Log.Debug("Loop iteration done");