Skip to content

Commit

Permalink
Merge pull request #176 from ltrzesniewski/zerolog-flush
Browse files Browse the repository at this point in the history
Use `ZeroLog.LogManager.Flush()` in benchmarks
  • Loading branch information
neuecc authored Aug 14, 2024
2 parents a717f57 + 8c24fc0 commit 05048db
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sandbox/Benchmark/Benchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
<PackageReference Include="Serilog.Sinks.TextWriter" Version="2.1.0" />
<PackageReference Include="System.IO.Hashing" Version="8.0.0" />
<PackageReference Include="ZeroLog" Version="2.1.1" />
<PackageReference Include="ZeroLog" Version="2.2.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\ZLogger\ZLogger.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion sandbox/Benchmark/Benchmarks/WriteJsonToConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public void ZeroLog_JsonFile()
.Log();
}

ZeroLog.LogManager.Shutdown();
ZeroLog.LogManager.Flush();
}

[Benchmark]
Expand Down
2 changes: 1 addition & 1 deletion sandbox/Benchmark/Benchmarks/WriteJsonToFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public void ZeroLog_JsonFile()
.Log();
}

ZeroLog.LogManager.Shutdown();
ZeroLog.LogManager.Flush();
}

[Benchmark]
Expand Down
2 changes: 1 addition & 1 deletion sandbox/Benchmark/Benchmarks/WritePlainTextToConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public void ZeroLog_PlainTextConsole()
zeroLogLogger.Info($"Hello, {MessageSample.Arg1} lives in {MessageSample.Arg2} {MessageSample.Arg3} years old");
}

ZeroLog.LogManager.Shutdown();
ZeroLog.LogManager.Flush();
}

[Benchmark]
Expand Down
2 changes: 1 addition & 1 deletion sandbox/Benchmark/Benchmarks/WritePlainTextToFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public void ZeroLog_PlainTextFile()
zeroLogLogger.Info($"Hello, {MessageSample.Arg1} lives in {MessageSample.Arg2} {MessageSample.Arg3} years old");
}

ZeroLog.LogManager.Shutdown();
ZeroLog.LogManager.Flush();
}

[Benchmark]
Expand Down

0 comments on commit 05048db

Please sign in to comment.