简单的日志记录
silo的Python项目详细描述
有时您只是不想配置日志记录。Documentation
功能
- 使用env变量配置
- 低开销调试操作(2个操作码)
- 跟踪业务运营的审计职能
配置
exportSILO_0=syslog_format:stderr exportSILO_1=json_format:stderr exportDEBUG=0
示例
fromsiloimportinfo,debug,auditdefhello(who='World'):info(f'Hello, {who}!')debug('done')hello()@auditdeflogin(username,password):# do smart stuff here...returnFalselogin('duckie','secret')
这个图书馆是麻省理工学院授权的。