import logging


def set_logger(log_level=logging.INFO):
    logger = logging.getLogger("logger")

    handler1 = logging.StreamHandler()

    logger.setLevel(log_level)
    handler1.setLevel(log_level)

    # formatter = logging.Formatter("%(asctime)s %(name)s %(levelname)s %(message)s")
    formatter = logging.Formatter("%(asctime)s >>> %(message)s")
    handler1.setFormatter(formatter)

    logger.addHandler(handler1)
    return logger

import logging


def set_logger(log_level=logging.INFO):
    logger = logging.getLogger("logger")

    handler1 = logging.StreamHandler()

    logger.setLevel(log_level)
    handler1.setLevel(log_level)

    # formatter = logging.Formatter("%(asctime)s %(name)s %(levelname)s %(message)s")
    formatter = logging.Formatter("%(asctime)s >>> %(message)s")
    handler1.setFormatter(formatter)

    logger.addHandler(handler1)
    return logger

# formatter = logging.Formatter("%(asctime)s %(name)s %(levelname)s %(message)s")