Adds logging to your exceptions