4

Kestrel writes logs. Sometimes it's info messages, sometimes - messages with warning/error type.

Here is console output:

enter image description here it's common.

I would like to catch exceptions to send notification via messenger or email to developer.

A fast research gives me something like this but I don't understand how I can catch stack trace and exception message. Has somebody a working example of this?

P.S. I use Asp.Net Core 3.0

Aleksej_Shherbak
  • 2,757
  • 5
  • 34
  • 71

0 Answers0