Open eemitev opened 1 year ago
@eemitev Does the Console sink support NULL
characters? What would would you expect to see on the RichTextBox for non-printable characters like these?
The Console Sink appears to print garbage instead of the NULL character. My expectation would be to get a Unicode Symbol. Specifically U+2400 ␀ SYMBOL FOR NULL
Same problem with some other chars like: Log.Information("\u0002"); Log.Information("\u0002");
Serilog appears to handle NULL characters fine but printing it to a RichTextBox causes an issue. If there is a NULL character in a string that is being logged, we end up with an unhandled exception.