serilog-sinks-richtextbox
serilog-sinks-richtextbox copied to clipboard
Logging a null character causes an exception
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.
msg = "\0";
Log.Information("{msg}", msg);
@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");