Overview¶
What’s in logging-strict¶
logging-strict primary focus is on logging.config yaml. Quick breakdown of other useful tidbits.
tech_niques¶
async and sync logging howto
logging capture
When writing unittest, see more indepth locals
helpers¶
extract package data using a pattern, rather than one at a time
Alternative to pkgutil
validate logging.config yaml files (entrypoint and pre-commit hook)
xdg_folders
Alternative to appdirs
Getting Started¶
Activate venv¶
. [venv path]/bin/activate
Install – production (pypi.org)¶
Install logging-strict package
pip install --upgrade logging_strict
Install – production (source code)¶
Download tarball and uncompress into a folder, cwd to that folder. checkout a tagged version
python igor.py build_next "[tagged version]"
make install-force
Install – optional (pypi.org)¶
ui – will install the dependencies for the UI
pip install --upgrade logging_strict[pip]
pip install --upgrade logging_strict[pip_tools]
pip install --upgrade logging_strict[manage]
pip install --upgrade logging_strict[dev]
pip install --upgrade logging_strict[docs]
or, for strict control, sync venv with piptools
pip-sync requirements/prod.pip requirements/manage.pip docs/requirements.pip requirements/dev.pip
Install – optional (source code)¶
pip install --upgrade -r requirements/manage.pip
pip install --upgrade -r requirements/prod.pip
pip install --upgrade -r requirements/dev.pip
pip install --upgrade -r docs/requirements.pip
Whats next¶
Now it’s time to integrate logging-strict with your app