Skip to main content

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

Metadata

Release files for fancylog 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fancylog 0.8.1
File Size Uploaded
fancylog-0.8.1.tar.gz 16.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fancylog 0.8.1
File Interpreter ABI Platform
fancylog-0.8.1-py3-none-any.whl Python 3 none any Details

Total release size: 26.3 kB

Release files / fancylog-0.8.1.tar.gz

Download URL fancylog-0.8.1.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6235a3420a6ebaafca793a736bd98dbff3d2b9829c1632c6444ce6fb13500f32
BLAKE2b-256 checksum
How to use checksums
267085412b13bef88181026b83a329e8362f11547e8345347ca65afa0606fc8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / fancylog-0.8.1-py3-none-any.whl

Download URL fancylog-0.8.1-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3a4b41991f9bab965e8bfebe52f12229499b534f940a8b55961e8e66d5ec3fe
BLAKE2b-256 checksum
How to use checksums
85c1401eae9fca5a15c994af960461d0d8b2eaf7207c15937bcc73bf706464bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page