import re
import logging


def is_valid_email(email):
    """ Validate the email format.

    Parameters
    ----------
    email: str
        the string data to be checked.

    Returns
    -------
    Boolean

    Raises
    ------
    Exception:
        for any uncaught syntax error.
    """
    try:
        email_pattern = r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)"
        return bool(re.match(email_pattern, email))
    except Exception as e:
        logging.error(e)
        raise e