def init_logging():
    log = logging.getLogger('devil')
    if log.level == logging.NOTSET:
        log.setLevel(logging.WARN)
        handler = logging.StreamHandler(sys.stdout)
        handler.setFormatter(logging.Formatter(
            '%(asctime)s %(levelname)s %(name)s %(message)s'))
        log.addHandler(handler)
dataset/ETHPy150Open wuher/devil/devil/__init__.py/init_logging/original