Access Exception Title without Stack Trace #1202
Unanswered
richardlawley
asked this question in
Help
Replies: 1 comment 1 reply
-
I've realised that this probably isn't possible within Seq, so am implementing it with a Serilog Enricher to add ExceptionMessage and ExceptionType properties. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking for a way to get an Exception title to use within an email template. I'm aware of
{{$Exception}}
, which contains the type and message of an exception followed by the stack trace (I'm only after the first line of this). I cannot find a way to get the title and message of the Exception alone.I did also consider using handlebars to take the first line of the exception, but I would need to be able to register a custom helper for that, which I don't believe is possible.
My reason for wanting this is that I would put it as a subject line in an email notification.
Beta Was this translation helpful? Give feedback.
All reactions