def init_logger():
    """Initialize the logger and set its format
    """
    formatter = logging.Formatter('%(levelname)s: %(message)s')
    console = logging.StreamHandler(stream=sys.stdout)
    console.setLevel(logging.INFO)
    console.setFormatter(formatter)
    logger.addHandler(console)
def init_logger ( ) : formatter = logging . Formatter ( '%(levelname)s: %(message)s' ) console = logging . StreamHandler ( stream = sys . stdout ) console . setLevel ( logging . INFO ) console . setFormatter ( formatter ) logger . addHandler ( console )
Initialize the logger and set its format