Skip to content

Logging a null character causes an exception #77

@eemitev

Description

@eemitev

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions