We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fc50b0 commit d0dbbb1Copy full SHA for d0dbbb1
test/Serilog.Extensions.Logging.Benchmarks/LogEventBenchmark.cs
@@ -34,6 +34,7 @@ private class Person
34
35
readonly IMelLogger _melLogger;
36
readonly Person _bob, _alice;
37
+ readonly EventId _eventId = new EventId(1, "Test");
38
39
public LogEventBenchmark()
40
{
@@ -61,5 +62,16 @@ public void LogInformationScoped()
61
62
using (var scope = _melLogger.BeginScope("Hi {@User} from {$Me}", _bob, _alice))
63
_melLogger.LogInformation("Hi");
64
}
65
+
66
+ [Benchmark]
67
+ public void LogInformation_WithEventId()
68
+ {
69
+ this._melLogger.Log(
70
+ LogLevel.Information,
71
+ _eventId,
72
+ "Hi {@User} from {$Me}",
73
+ _bob,
74
+ _alice);
75
+ }
76
77
0 commit comments