I'm using Hellang ProblemDetails package in a Web API application using .Net Core 5 and I need to log the exception before sending response back to client.
I tried using ExceptionHandler middleware and Hellang ProblemDetails Middleware together, but they didn't work together. How can I log exception globally while using Hellang ProblemDetails?