human
I wrote the below code

    logger = (logger if (logger is not None) else logging.getLogger(__name__))
    def exceptionLoggingDecorator(func):
        @functools.wraps(func)
        def exceptionLoggingWrap(*args, **kwargs):
            try:
                return func(*args, **kwargs)
            except:
                logger.exception('Unhandled    exception    %r    from    %r.    Caller    stack:\n%s', sys.exc_info()[1], func, ''.join(traceback.format_stack()))
                raise
        return exceptionLoggingWrap
    return exceptionLoggingDecorator

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def logExceptions(logger=None):