Skip to content

Commit

Permalink
Merge pull request #77 from serilog/dev
Browse files Browse the repository at this point in the history
Release 3.3.3
  • Loading branch information
nblumhardt authored Jul 25, 2017
2 parents af219d7 + c5c54a5 commit c36567b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions sample/Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ public static void Main(string[] args)
.MinimumLevel.ControlledBy(levelSwitch)
.WriteTo.LiterateConsole()
.WriteTo.Seq("http://localhost:5341",
apiKey: "yeEZyL3SMcxEKUijBjN",
apiKey: "o6nYf3WWnzF43Uu5PZWJ",
controlLevelSwitch: levelSwitch)
.CreateLogger();

Log.Information("Sample starting up");

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");
Expand Down
2 changes: 1 addition & 1 deletion src/Serilog.Sinks.Seq/Serilog.Sinks.Seq.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>Serilog sink that writes to the Seq log server over HTTP/HTTPS.</Description>
<VersionPrefix>3.3.2</VersionPrefix>
<VersionPrefix>3.3.3</VersionPrefix>
<Authors>Serilog Contributors</Authors>
<Copyright>Copyright © Serilog Contributors 2013-2017</Copyright>
<TargetFrameworks>netstandard1.1;netstandard1.3;net45;net46</TargetFrameworks>
Expand Down
4 changes: 2 additions & 2 deletions src/Serilog.Sinks.Seq/Sinks/Seq/SeqSink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<LogEvent>());
await EmitBatchAsync(Enumerable.Empty<LogEvent>());
}
}

Expand Down

0 comments on commit c36567b

Please sign in to comment.