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!')
pip install "setuplog"