Q:

change logger.exception to level=CRITICAL instead of ERROR? 

I need to change the logger.exception default behavior to write to my logger with level=CRITICAL.  It seems like something I can change but I haven't figured out how.  My last resort is sys.excepthook but I don't want to use it because I do formatting in there. 
thanks! 

A:

You can log exceptions using CRITICAL like this:
logger.critical('Message with %s', 'arguments', exc_info=True)

which will behave just like logger.exception, only with a level of CRITICAL rather than ERROR.