Logging callback errors

I’m running a dash app using gunicorn, and then I set to put the error log in a file. This means that everything that every log message gets put into that file.

But when a callback raises an error, It’s displayed on stdout. Is it possible to display it with logger.error() instead?