跳转到主要内容

使用T-Strings的Python日志前端

项目描述

开关器

建立在python日志模块之上的T-String日志库。

日志器名称始终基于__NAME__

字符串格式化是懒加载的,所以如果日志级别未启用,则不会进行字符串化。

# 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"

项目详情


下载文件

下载您平台上的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

togger-24.10.5a1.tar.gz (4.1 kB 查看散列)

上传时间

构建的发行版

togger-24.10.5a1-py3-none-any.whl (3.0 kB 查看哈希值)

上传于 Python 3

由以下支持