Redirecting exceptions to a file

Hi all. There is a small dash server that we use with a small group of people for small needs.
Sometimes callbacks return exceptions and the error text is displayed in a message in the upper right corner. I have to explain to people that a screenshot of a minimized error does not mean anything and you need to first click to expand it and only then take a screenshot…
All this takes a lot of time.
Is it possible to somehow configure it so that the text of all these exceptions is not displayed on the screen (or not only displayed), but is also sent to a file, database or email?

Hello @uk141,

This should be available in the next release of Dash. You can have a on_error for the entire app, and any error encountered will run that function, so you can handle these errors however you would like. :slight_smile:

1 Like

Thank you very much for your answer =)