Skip to main content

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.

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

Usage

poetry run python indentedlogs/hello.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 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:

Donate

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.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

indentedlogs-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file indentedlogs-0.1.0.tar.gz.

File metadata

  • Download URL: indentedlogs-0.1.0.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

Hashes for indentedlogs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 23a608ebcc215e1c2b19f0c31911eba6a46e5c4700bdbefa64c3be3357a3fff6
MD5 8d0544940c052e4aee182f660dbc019d
BLAKE2b-256 ba4f439d20121eb0b48d8081ff0db6f71e067da5a4d9ba7e9ae886519fca6528

See more details on using hashes here.

File details

Details for the file indentedlogs-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: indentedlogs-0.1.0-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

Hashes for indentedlogs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 211449d1a73b6c0c14861b86964e940de9caf56503a9b563040ef85cb6d52b5f
MD5 ac2b872582ee74a77b7c547d93e27715
BLAKE2b-256 fca3ab8de03931b2ae597ad93faf6c323d9006043c623c4bba3f382cd80ce811

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page