

def setup_logging(procname, namespace='', log_level=logging.INFO, log_file=None):
    logger = multiprocessing.get_logger()
    logger.setLevel(log_level)
    handler = get_logging_handler(log_file, procname, namespace)
    logger.addHandler(handler)
    return logger

dataset/ETHPy150Open binarydud/pyres/pyres/horde.py setup_logging/original