Skip to main content

json logger, very helpful for developers at developing stage

Project description

py_logger

PyPI Downloads

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 Distribution

json_dev_logger-0.0.15.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

json_dev_logger-0.0.15-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file json_dev_logger-0.0.15.tar.gz.

File metadata

  • Download URL: json_dev_logger-0.0.15.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for json_dev_logger-0.0.15.tar.gz
Algorithm Hash digest
SHA256 76a73a191238deefc611750defb16563dd8fb2a84a1cde253b7abae0c24c5b37
MD5 5e9ae4f574fb71233aec44d879984327
BLAKE2b-256 7e6c827d30b33c8467e7c51c2cc685ee6ab0da43ed3e5f1f828cbaa50410173c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for json_dev_logger-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 61423580a2f495db82c971e811133c6029aa120f57372bd4fa415d3bf6592f02
MD5 ef2bfe24db259bb07ebf8354b169f7fa
BLAKE2b-256 b9ad6ef9e0fb3392208eb4271b1006b789baa3898dbd0e3bcf74a8f5058211e3

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