Skip to main content

Fancier logging in Python

Project description

Python Version PyPI Downloads Wheel Development Status Code style: black Contributions

fancylog

Fancier logging with python.

Uses the standard python logging library, but (optionally) in addition:

  • Logs code when using the multiprocessing module using multiprocessing-logging
  • Uses GitPython to log information about the git environment.
  • Logs the command-line arguments used to run the software
  • Logs object attributes

To install

pip install fancylog

N.B. For the git logging to work, you need to have git and the GitPython package installed. The latter can be installed along with fancylog using:

pip install fancylog[git]

To run example

git clone https://github.com/neuroinformatics-unit/fancylog
pip install -e .
python fancylog/example.py /path/to/output/log/dir

If you run the example, you should get a log file that resembles this

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

fancylog-0.4.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

fancylog-0.4.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file fancylog-0.4.1.tar.gz.

File metadata

  • Download URL: fancylog-0.4.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for fancylog-0.4.1.tar.gz
Algorithm Hash digest
SHA256 5c4cbbb3a89a1dbd5b07f142eba6ee0ecfbbc2d316f1f08cf0337a64171818c9
MD5 fceb42ccfeae8a43d5a2c6577096214f
BLAKE2b-256 95974a9a90dad4b39f15bdbd80224802db5c8b956c0aaae8cf486e0ce4369125

See more details on using hashes here.

File details

Details for the file fancylog-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: fancylog-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for fancylog-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 74ed32a913229b7fa75bad93c3653c1a906c58cf6385febe6bf84d3e65a6cf30
MD5 60787c3e2c48eefa590fe5f6279db991
BLAKE2b-256 810c190d7d64fa6e37250c674d5a9d96814af62040f512d6c242b9df7eae2432

See more details on using hashes here.

Supported by

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