Improve logging by using different handlers and the flask logger already present

Create the log handler sending emails for debug logs (when a large exception occured)

Create a second handler sending regular log information to stderr