Contents:
log_exception()
Decorator to log exceptions raised by a function.
logger – The logger to use to record the exception.
exec_info – If True, the exception information will be added to the log record.