Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 902 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 902 Bytes

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"