diff --git a/CHANGES.md b/CHANGES.md index 29be98f..2a986a2 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,2 +1 @@ -1.5.0 - * Moved the Seq sink from its [original location](https://github.com/serilog/serilog) +Please see: https://github.com/serilog/serilog-sinks-seq/releases for changelog. diff --git a/sample/Sample/Program.cs b/sample/Sample/Program.cs index d350a91..c277d31 100644 --- a/sample/Sample/Program.cs +++ b/sample/Sample/Program.cs @@ -17,7 +17,7 @@ public static void Main(string[] args) .MinimumLevel.ControlledBy(levelSwitch) .WriteTo.LiterateConsole() .WriteTo.Seq("http://localhost:5341", - apiKey: "yeEZyL3SMcxEKUijBjN", + apiKey: "o6nYf3WWnzF43Uu5PZWJ", controlLevelSwitch: levelSwitch) .CreateLogger(); @@ -25,7 +25,7 @@ public static void Main(string[] args) foreach (var i in Enumerable.Range(0, 1000)) { - Log.Information("Running loop {Counter}", i); + Log.Information("Running loop {Counter}, switch is at {Level}", i, levelSwitch.MinimumLevel); Thread.Sleep(1000); Log.Debug("Loop iteration done"); diff --git a/src/Serilog.Sinks.Seq/Serilog.Sinks.Seq.csproj b/src/Serilog.Sinks.Seq/Serilog.Sinks.Seq.csproj index 7265531..3b6cd54 100644 --- a/src/Serilog.Sinks.Seq/Serilog.Sinks.Seq.csproj +++ b/src/Serilog.Sinks.Seq/Serilog.Sinks.Seq.csproj @@ -2,7 +2,7 @@ Serilog sink that writes to the Seq log server over HTTP/HTTPS. - 3.3.2 + 3.3.3 Serilog Contributors Copyright © Serilog Contributors 2013-2017 netstandard1.1;netstandard1.3;net45;net46 diff --git a/src/Serilog.Sinks.Seq/Sinks/Seq/SeqSink.cs b/src/Serilog.Sinks.Seq/Sinks/Seq/SeqSink.cs index 4f08be6..5288b40 100644 --- a/src/Serilog.Sinks.Seq/Sinks/Seq/SeqSink.cs +++ b/src/Serilog.Sinks.Seq/Sinks/Seq/SeqSink.cs @@ -76,12 +76,12 @@ protected override void Dispose(bool disposing) // The sink must emit at least one event on startup, and the server be // configured to set a specific level, before background level checks will be performed. - protected override void OnEmptyBatch() + protected override async Task OnEmptyBatchAsync() { if (_controlledSwitch.IsActive && _nextRequiredLevelCheckUtc < DateTime.UtcNow) { - EmitBatch(Enumerable.Empty()); + await EmitBatchAsync(Enumerable.Empty()); } }