Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 3.3.3 #77

Merged
merged 4 commits into from
Jul 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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