serilog-contrib / Serilog.Sinks.MicrosoftTeams.Alternative

Serilog.Sinks.MicrosoftTeams.Alternative is a library to save logging information from Serilog to Microsoft Teams.
MIT License
32 stars 10 forks source link

Wrap exception into code block #26

Closed mggrand closed 1 year ago

mggrand commented 1 year ago

When an exception contains a stack trace with generic classes inside, the greater-than and the lower-than sign are getting interpreted as format instructions which leads to some nasty formatted output.

This pr fixes it with wrapping the whole exception into a code block like the one used for useCodeTagsForMessage.

SeppPenner commented 1 year ago

@all-contributors please add @mggrand for code

allcontributors[bot] commented 1 year ago

@SeppPenner

I've put up a pull request to add @mggrand! :tada: