Adds indentation to the log messages according to their location in the call stack.
Project description
indentedlogs
Adds indentation to the log messages according to their location in the call stack.
- Documentation: https://gergelyk.github.io/python-indentedlogs
- Repository: https://github.com/gergelyk/python-indentedlogs
- Package: https://pypi.python.org/pypi/indentedlogs
- Author: grzegorz.krason@gmail.com
- License: MIT
Requirements
This package requires CPython 3.8 or compatible. If you have other version already installed, you can switch using pyenv
. It must be installed as described in the manual.
pyenv install 3.8.2
pyenv local 3.8.2
Installation
pip install indentedlogs
Examples
python examples/demo0.py
python examples/demo1.py
python examples/demo2.py
Development
# Preparing environment
pip install --user poetry # unless already installed
poetry install
# Auto-formatting
poetry run docformatter -ri indentedlogs tests
poetry run isort -rc indentedlogs tests
poetry run yapf -r -i indentedlogs tests
# Checking coding style
poetry run flake8 indentedlogs tests
# Checking composition and quality
poetry run mypy indentedlogs tests
poetry run pylint indentedlogs tests
poetry run bandit indentedlogs tests
poetry run radon cc indentedlogs tests
poetry run radon mi indentedlogs tests
# Testing with coverage
poetry run pytest --cov indentedlogs --cov tests
# Rendering documentation
poetry run mkdocs serve
# Building package
poetry build
# Releasing
poetry version minor # increment selected component
git commit -am "bump version"
git push
git tag ${$(poetry version)[2]}
git push --tags
poetry build
poetry publish
poetry run mkdocs build
poetry run mkdocs gh-deploy -b gh-pages
Donations
If you find this software useful and you would like to repay author's efforts you are welcome to use following button:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
indentedlogs-0.1.4.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file indentedlogs-0.1.4.tar.gz
.
File metadata
- Download URL: indentedlogs-0.1.4.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.3 CPython/3.8.2 Linux/5.5.7-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b11a912477bacfc4f617623ae7abfea4c7c7254b3be46c54715c909844554c3 |
|
MD5 | 247760ab6aa3e699d939b8ee5b443106 |
|
BLAKE2b-256 | 1368bf6b5a7ce81355c1beed38f1c3fb8915ea1952af5e6d2407f33f46113c23 |
File details
Details for the file indentedlogs-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: indentedlogs-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.3 CPython/3.8.2 Linux/5.5.7-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02dc088b824eaa76bee328f6e02dd3b17eea90281f359ad2428283713ac4b7af |
|
MD5 | 96b957d337e4c3e140377a5b57f4720f |
|
BLAKE2b-256 | cc948c6a6dc6310e4ff6e1f479c909c77118db9765eb6bbbcb64c80af46805ef |