Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to set Event ID on EventLog sink (in Serilog)?

Tags:

serilog

I took a look at Serilog.Sinks.EventLog at Github and noticed there doesn't seem to be a way to set the Event ID of the logged event (example IDs here).

Would there exist a way to modify the sink so that it'd be possible? Perhaps with some kind of specially formatted message? I don't know if I should put this here or on Github, I'll try here first. :)

like image 397
Veksi Avatar asked Nov 09 '22 16:11

Veksi


1 Answers

There isn't a mechanism currently for this - designing one seems tricky (but ultimately it'd be a great addition to the project!)

like image 175
Nicholas Blumhardt Avatar answered Jan 04 '23 03:01

Nicholas Blumhardt