Quantcast
Viewing all articles
Browse latest Browse all 9386

.NET Core log un-handled exceptions in the console

Hello,

I'm currently working on a personal project written in ASP.Net core, due to the way logging is set, unhandled exceptions aren't logged into the Console.

When I encounter a problem I usually connect /w the debugger and the resolve/handler the Exception. I don't want to use a huge try/catch in my BackgroundService sub class to log unhandled exceptions. I'm kinda new to the ecosystem and I don't know what's the best way to achieve this.

Is there any settings that that logs un-handled exceptions to the console?  I'm also thinking about using a third-party service like Sentry to track my exceptions.

Thank you very much!


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>