Skip to main content

logger with standard/common format

Project description

📚 About

Centralize log for Python with:

  • UTC time with ISO8601 format.
  • Accency to milliseconds.
  • Json format.
  • Log write to console
  • Log write to specific file location and rotate (optional)

📝 Usage

from jjlog import jjlogger

log = jjlogger("jjapp Log", "./log/jjapp.log")
# log = jjlogger("jjapp Log")   ## Or just output to console
logger = log.getLogger()

logger.info("jj test001")

Output: { 'time':'2022-03-27T14:07:17.456Z','name':'jjapp Log','level':'INFO','message':'log start' }

🔧 Examples:

example code

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

jjlog-0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

jjlog-0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file jjlog-0.1.tar.gz.

File metadata

  • Download URL: jjlog-0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.4

File hashes

Hashes for jjlog-0.1.tar.gz
Algorithm Hash digest
SHA256 decff3b9285dfbda87babfe31ef6785c5becee4e8b2d8c9d37aae56dd9110730
MD5 27d06bcb244c96abcc9ec37ebce75e5c
BLAKE2b-256 0c057a7b4fccc74d148ee3bf5ea71e5f3d94bef852cb47f1fa66ba4f2ea97620

See more details on using hashes here.

File details

Details for the file jjlog-0.1-py3-none-any.whl.

File metadata

  • Download URL: jjlog-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.4

File hashes

Hashes for jjlog-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf039b731e0685d7f69f747fb18988a5b1c4189fb7a87a56f2e0dbbe68042f15
MD5 0d2124ddcea9f0e09ea99428e4fa61e7
BLAKE2b-256 07030eed7572f33ffb00b355a784ef86e2a52048ac134858935a7f4616506345

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