Skip to content

Commit

Permalink
Revert example changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nblumhardt committed May 24, 2024
1 parent 5df779d commit 95e6ad3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sample/Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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");
Expand Down

0 comments on commit 95e6ad3

Please sign in to comment.