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", 
 "hostname": "devserver-24",
 "reponame": "py_logger", 
 "branch": "master", 
 "modified_files": " M README.md"}

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for json_dev_logger-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 abf44a4adfcfa9be7705d4b1e9ef051dc67777978c93e6b623c8bf8ed1ba7b95
MD5 acb76eb075ad3bb32f62c000f271421e
BLAKE2b-256 3f16fa4f6f837b773c6b5f156e36303c243ab7593bd87c4553909e4d3f1e2a04

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