def log_exception(logger, signature, e):
    """
    Logging exception at ERROR level.

    :param logger: the logger object
    :param signature: the method signature
    :param e: the error
    """
    # This will log the traceback.
    logger.error('[Error in method ' + signature + ': Details ' + str(e) + ']', exc_info=True)
    return e