serilog-sinks-eventlog icon indicating copy to clipboard operation
serilog-sinks-eventlog copied to clipboard

Fix the MaximumPayloadLengthChars

Open 0xced opened this issue 8 months ago • 0 comments

The EventLog.WriteEntry documentation 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 opened this pull request as draft because I also opened https://github.com/dotnet/dotnet-api-docs/pull/9999 which proposes to change the official documentation about the maximum message size. So let's see what the documentation team has to say about it first...

0xced avatar Jun 06 '24 13:06 0xced