Skip to content

An easier, centralized way to setup logging in applications.

License

Notifications You must be signed in to change notification settings

schireson/setuplog

Repository files navigation

CircleCI codecov Documentation Status

The pitch

Logging setup is one of those annoying things that one finds themselves relearning every time a new project is started.

setuplog attempts to centralize, and simplify the set of decisions one needs to make when bootstrapping a project.

# app.py
from setuplog import setup_logging

setup_logging(
    log_level='INFO',
    namespace='project_name',

    # opt into {}-style formatting!
    style='format',
)

# elsewhere
from setuplog import log

log.info('Info!')

Installing

pip install "setuplog"