Skip to content

particula.logger_setup

logger_setup

Setup for logging in the particula package.

Based on setup from: https://youtu.be/9L77QExPmI0?si=pSKsVyVh2dE8QxFA https://github.com/mCodingLLC/VideosSampleCode/tree/master/videos/135_modern_logging

setup

setup()

Setup for logging in the particula package.

Source code in particula/logger_setup.py
61
62
63
64
65
66
def setup():
    """Setup for logging in the particula package."""
    # check for logging directory
    os.makedirs(log_dir, exist_ok=True)
    logging.config.dictConfig(config)
    return logger