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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fancylog-0.4.2.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for fancylog-0.4.2.tar.gz
Algorithm Hash digest
SHA256 08edb5bbd69833962ec716df08518e80a02fa8db04ad8981c5705566875251e6
MD5 bb58dbdd9278184e335bbf8a42b5c148
BLAKE2b-256 0f6c684be90d1574ca8b8c8fa980d7e6fdb5942309ce751adf36e207ce04b10c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fancylog-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c6a4dd74d64f28cff96b85611b82bef7afa090ab180b4b05d5c6547a8e359587
MD5 f73ca8f3040a10d1c212a0c60421d67d
BLAKE2b-256 b544804ba61167ebb9a833350634b12395aa4ca43f071c5169e58c4b3f3a16e6

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