serilog-sinks-eventlog
serilog-sinks-eventlog copied to clipboard
Structured logging
Does this sink support structured/semantic logging? The following code produces identical XML results in the Windows Event Log:
s_logger.Information("T1: Logger test #{TestNo}", 1);
s_logger.Information("T1: Logger test #1");
Event Log XML:
<EventData>
<Data>T1: Logger test #1</Data>
</EventData>
I was expecting to see something granular for TestNo that would allow filtering. Or am I misunderstanding how this works?