Skip to main content

A python logging frontend using T-Strings

Project description

togger

T-String Logging Library built ontop of python logging module.

Logger names are always based on the __NAME__

Strings formatting is lazy, so if the log level is not enabled, no stringification takes place.

# Works with all the standard levels
from togger import debug, fatal

debug"fun times"
fatal"oh noes"

# Works with logging by level int instead of name
from togger import log

level1=log(1)
level1"{level1!r} Error Message"

# Works with custom level names
import logging
logging.addLevelName(51, "SPEW")
from togger import spew

spew"halp! i'm dying here"

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

togger-24.10.5a1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

togger-24.10.5a1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file togger-24.10.5a1.tar.gz.

File metadata

  • Download URL: togger-24.10.5a1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for togger-24.10.5a1.tar.gz
Algorithm Hash digest
SHA256 61d2985008d39e91608e2353d68b676affa60d9f8c97174227e5e2c667201f04
MD5 89ba738510495358e03194143e5b7d03
BLAKE2b-256 16d18813d774393ea30ac47b21efd45ca05f86150b6a5c43e3b3415f11653117

See more details on using hashes here.

Provenance

File details

Details for the file togger-24.10.5a1-py3-none-any.whl.

File metadata

  • Download URL: togger-24.10.5a1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for togger-24.10.5a1-py3-none-any.whl
Algorithm Hash digest
SHA256 eb7b8601f7536b14cf7d1d1550d6f46ab3e75d58706315e175c380502b2f93b7
MD5 0bb7e90568be74ab1153f0e993e00772
BLAKE2b-256 189e8bfdd93f86e295e152bf681935dc5fef7a12715dc67067dbfd6a38748665

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page