Skip to main content

Fancier logging in Python

Project description

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

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 enable logging when using the multiprocessing module, install using:

pip install fancylog[multiprocessing]

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

Uploaded Source

Built Distribution

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

fancylog-0.8.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fancylog-0.8.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fancylog-0.8.0.tar.gz
Algorithm Hash digest
SHA256 3b8beb119b73c193ec48c68c7b721a0a4912f530f22798c00f64065b2905f83a
MD5 19e0937cbd02a4989febf80f4c7b64f5
BLAKE2b-256 e0d85062312b03eb8ae6c5810d59db56397b38e9c038c9cb4b9e2cf466eef3d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fancylog-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fancylog-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 382a37eb8aea64a5d01cbf976c45f74f7dc349f9599c017287bed11733bbff1b
MD5 6d378d7509d7700e552bec47d3f57949
BLAKE2b-256 0f3799c3a79e0991fd0b2a83e0bfed94625bc24f6c4cbb2b5b61fe07a37c0312

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