serilog-sinks-eventlog
serilog-sinks-eventlog copied to clipboard
A Serilog sink that writes events to the Windows Event Log
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...
We are usingSerilog and we are adding EventLog as Sink from configuration. This is how our code looks. ``` public static ILoggingBuilder AddSerilog(this ILoggingBuilder logging, IConfiguration configuration) { if (logging...
Hey. Is there a way to specify a EventId for diffrent Log calls? If not, I came up with my own solution, maybe there is good use of such functionality....
It looks like The Windows.EventLog sink has no way of "ignoring" non error logs. Could an override be allowed to set a minimumLogEventToWrite="Information" for the default value, but allow it...
I just discovered that creation of new event log and sources is not thread safe. It is failing during our tests as they are executed in parallel. ```csharp if (System.Diagnostics.EventLog.SourceExists(source,...
Used following content in my appsetting.json , and no log can be found from the eventviwer. In the meanwhile, tried c# api to configure it, and it worked. ```json {...
The [EventLog.WriteEntry documentation][1] says the maximum is 31839 but it was found empirically that the maximum is 31718 on Windows 10. The `UsingSuperLongLogMessageWorks` test now passes again. Note: I have...
My understanding is that the EventId I see in the Windows EventLog is the MessageId and is somewhat dynamic derived from Serilog. This makes it very difficult, if not impossible...