py_logger
Project homepage is https://github.com/Areso/py_logger
Why?
I like to tinker things, and while I am writing the code, I am also the person who runs the code as well. This why I made this small library to gather enriched logs from my Python-powered projects. The enriched data includes name of the repo, branch, manually modified files (when debugging I could change something with my barehands right on a server, where my projects run)
Installation through PyPi
pip3 install json-dev-logger
in a project:
from py_logger import setup_logger
logger = setup_logger()
logger.info("test")
example of a record:
{"level": "INFO",
"time": "2025-03-26 19:48:07,797",
"message": "test",
"name": "jsonLogger",
"filename": "1.py",
"lineno": 4,
"pathname": "/home/username/git/py_logger/1.py",
"hostname": "devserver-24",
"reponame": "py_logger",
"branch": "master",
"modified_files": " M README.md"}
Release files for json-dev-logger 0.0.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| json_dev_logger-0.0.15.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| json_dev_logger-0.0.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / json_dev_logger-0.0.15.tar.gz
| Download URL | json_dev_logger-0.0.15.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76a73a191238deefc611750defb16563dd8fb2a84a1cde253b7abae0c24c5b37
|
|
BLAKE2b-256 checksum How to use checksums |
7e6c827d30b33c8467e7c51c2cc685ee6ab0da43ed3e5f1f828cbaa50410173c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / json_dev_logger-0.0.15-py3-none-any.whl
| Download URL | json_dev_logger-0.0.15-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61423580a2f495db82c971e811133c6029aa120f57372bd4fa415d3bf6592f02
|
|
BLAKE2b-256 checksum How to use checksums |
b9ad6ef9e0fb3392208eb4271b1006b789baa3898dbd0e3bcf74a8f5058211e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|