Centralize email/logging config

Priority.ERROR seems to be deprecated in favour of Level.ERROR?