def setup_logging(
    default_path='./config/logconfig.json', 
    default_level=logging.INFO,
    env_key='LOG_CFG'
):
    path = default_path
    value = os.getenv(env_key, None)
    if value:
        path = value
    if os.path.exists(path):
        with open(path, 'rt') as f:
            config = json.load(f)
        logging.config.dictConfig(config)
    else:
        logging.basicConfig(level=default_level)
test stupid cache size bug
dataset/ETHPy150Open zyrikby/BBoxTester/BBoxTester/logconfig.py/setup_logging--crossover with--dataset/ETHPy150Open cjlee112/pygr/tests/annotation_test.py/AnnotationSeq_Test.test_cache_size