add configurable log level for exceptions