I think I found a solution, I added a handler to the root logger that will throw an exception if the log level is Error or greater.