json logger, very helpful for developers at developing stage
Project description
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",
"reponame": "py_logger\n",
"branch": "* master\n",
"modified_files": " M README.md\n"}
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 Distributions
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 json_dev_logger-0.0.13-py3-none-any.whl.
File metadata
- Download URL: json_dev_logger-0.0.13-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57e99d56e7f2817c8e8beddf91ef1ba7d475e84d051c822392c8ff958e28ab1e
|
|
| MD5 |
0cdf0be16394af14cac1a7ac2251f1ff
|
|
| BLAKE2b-256 |
c1c4257c98784a16fe998563857372baf83e40f96f78bd1306540a0f3077308d
|