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.13-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for json_dev_logger-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 57e99d56e7f2817c8e8beddf91ef1ba7d475e84d051c822392c8ff958e28ab1e
MD5 0cdf0be16394af14cac1a7ac2251f1ff
BLAKE2b-256 c1c4257c98784a16fe998563857372baf83e40f96f78bd1306540a0f3077308d

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