import logging


def setup_logger(log_level):
    """Setup logger for the module"""
    logger = logging.getLogger('email_client')
    logger.setLevel(log_level)
    sh = logging.StreamHandler()
    sh.setLevel(log_level)
    format = logging.Formatter('%(asctime)s  %(levelname)-7s %(name)-10s %(message)s')
    sh.setFormatter(format)
    logger.addHandler(sh)
    return logger