fides/logging.py
def create_logger(level: int) -> logging.Logger:
    """
    Creates a logger instance. To avoid unnecessary locks during
    multithreading, different logger instance should be created for every

    :param level:
        logging level

    :return:
        logger instance
    """
    global logger_count
    logger_count += 1
    # add logger count to differentiate between different fides
    # optimization instances and avoid deadlocks
    logger = logging.getLogger(f'fides_{logger_count}')
    ch = logging.StreamHandler()
    formatter = logging.Formatter(
        '%(asctime)s - fides - %(levelname)s - %(message)s'
    )
    ch.setFormatter(formatter)
    logger.addHandler(ch)
    logger.setLevel(level)
    return logger

    Creates a logger instance. To avoid unnecessary locks during
    multithreading, different logger instance should be created for every

    :param level:
        logging level

    :return:
        logger instance
    
Creates a logger instance. To avoid unnecessary locks during
multithreading, different logger instance should be created for every
Creates a logger instance . To avoid unnecessary locks during multithreading different logger instance should be created for every
def create_logger(level: int) -> logging.Logger:
    global logger_count
    logger_count += 1
    logger = logging.getLogger(f'fides_{logger_count}')
    ch = logging.StreamHandler()
    formatter = logging.Formatter(
        '%(asctime)s - fides - %(levelname)s - %(message)s'
    )
    ch.setFormatter(formatter)
    logger.addHandler(ch)
    logger.setLevel(level)
    return logger
def create_logger ( level : int ) -> logging . Logger : global logger_count logger_count += 1 logger = logging . getLogger ( f'fides_{logger_count}' ) ch = logging . StreamHandler ( ) formatter = logging . Formatter ( '%(asctime)s - fides - %(levelname)s - %(message)s' ) ch . setFormatter ( formatter ) logger . addHandler ( ch ) logger . setLevel ( level ) return logger
Creates a logger instance.
Creates a logger instance .
"""
    Creates a logger instance. To avoid unnecessary locks during
    multithreading, different logger instance should be created for every

    :param level:
        logging level

    :return:
        logger instance
    """ # add logger count to differentiate between different fides # optimization instances and avoid deadlocks
None
level
int
None