Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

json_dev_logger-0.0.12-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file json_dev_logger-0.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for json_dev_logger-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 ed68edb2fb5b8974d3272940ab58cfd125c78ffc608c7e9f8e048171d35d69ff
MD5 0a3caa26e18446b1910947478b01e8c0
BLAKE2b-256 3e44c9bf1bd7f5cd6e791f8a730921483f8939111eaa5f0622b8cf6c4f7681e2

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