KARTOOS
Logging unhandled/fatal exception in .net core 8
I want to log fatal/unhandled exceptions to the db .
I used to work on .net framework and over there I used a combination of global.asax.cs (application_error) and log4net to achieve this.
Can someone kindly tell me hownit can be achieved in .net core 8 for a project that is a rest API.
I was looking into global error handling using
UseExceptionHandler.
But since I am new to .net core in general was feeling a bit confused.
Thanks in advance.
14 replies