Skip to main content

A python logging frontend using T-Strings

Reason this release was yanked:

Spelling error in code

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.4a1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: togger-24.10.4a1.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.4a1.tar.gz
Algorithm Hash digest
SHA256 35d09152f936cb4ccb4563ac9710952372355d20eab897693d0acf7e946af465
MD5 77a3d01a95007ec58e4d05256edeba53
BLAKE2b-256 9d9786db7f68a5225b78aa73dc8d550b8f7061151adb42e6091a089ff59138df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: togger-24.10.4a1-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.4a1-py3-none-any.whl
Algorithm Hash digest
SHA256 789851c2c8f2d68289b293d675823a2f446646df4c173b434d3128f43893a807
MD5 4e3a5d48af7ac9fc164864e6a148191f
BLAKE2b-256 dac73d4f918d42970e64b3a6bf8dde5fb716965f64f4bf66a9d3d91d09706222

See more details on using hashes here.

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