Fancier logging in Python
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b8beb119b73c193ec48c68c7b721a0a4912f530f22798c00f64065b2905f83a
|
|
| MD5 |
19e0937cbd02a4989febf80f4c7b64f5
|
|
| BLAKE2b-256 |
e0d85062312b03eb8ae6c5810d59db56397b38e9c038c9cb4b9e2cf466eef3d0
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
382a37eb8aea64a5d01cbf976c45f74f7dc349f9599c017287bed11733bbff1b
|
|
| MD5 |
6d378d7509d7700e552bec47d3f57949
|
|
| BLAKE2b-256 |
0f3799c3a79e0991fd0b2a83e0bfed94625bc24f6c4cbb2b5b61fe07a37c0312
|