Even if you use SafeExceptionReporterFilter , exceptions will contain important data (for example, ENV server variables and other data at run time).
In order not to expose sensitive data, you should not use this filter. Instead, write your own Exception Handler middleware and selectively (recursively?) Retrieve the necessary data in the logs.
See sys.exc_info for how to get an exception trace and how to use it for your needs.
Even if you pass using CustomHandler, you will be limited to a specific handler, and as far as I know, third-party handlers will not use SafeExceptionReporterFilter .
Raphael riel
source share