<reponame>jsnouffer/neo4j_db_project<filename>src/speedrun/speedrun_collector/__init__.py
import logging.config
import logging
import os
import yaml
from dotenv import load_dotenv

load_dotenv(os.getenv('CONFIG_ENV'))

try:
    with open('logging.yaml', 'rt') as stream:
        config = yaml.load(stream, Loader=yaml.FullLoader)
    logging.config.dictConfig(config)
except FileNotFoundError:
    print("No valid logging file found")