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

Uploaded Source

Built Distribution

fancylog-0.4.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fancylog-0.4.3.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.6

File hashes

Hashes for fancylog-0.4.3.tar.gz
Algorithm Hash digest
SHA256 8606698149ea676a56f6a2667a1e60f910fd39b4babec05a39e020862791e361
MD5 b1d45e96219ab7f7b669d62084c04915
BLAKE2b-256 8bb047c54200eb2ff35c0b6c13b69299ff1db0ff4efe059ae15c9a590663d97c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fancylog-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.6

File hashes

Hashes for fancylog-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f34bb6ff011719bc0ed6f852f44552fa790408f1e56bb65c7c1baa302c68fb47
MD5 d8ccea10186c173c95e44dcc16b77bcd
BLAKE2b-256 5e40687218e333ca4f9bd6d2d5619cef5ea03992499acb9f031dd39b78d3429f

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