:rat:ratlog python库-老鼠、人类和机器的应用程序日志

ratlog的Python项目详细描述


:rat:ratlog.py

老鼠、人类和机器的应用程序日志

Build Status

Disclaimer:The Ratlog specification is still alpha status and might be subject to breaking changes. Beware, because of that, this API and format might change significantly. We will try our best to tag a stable release as soon as possible. Leave feedback and help us get there faster!

>>>importratlog>>>log=ratlog.Log()>>>log("hello world")helloworld# Add fields>>>log("counting",{"count":1})counting|count:1# Add fields and tag>>>log("counting",{"count":-1},"negative")[negative]counting|count:-1# Create another logger bound to a tag>>>warn=ratlog.Log("warning")>>>warn("disk space low")[warning]diskspacelow# Adding more tags>>>crit=ratlog.Log("warning","critical")>>>crit("shutting down all servers")[warning|critical]shuttingdownallservers

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
JavaJSonarray不会从SeekBar读取double   使用另一个类从Java中的2D数组打印用户输入   java ClassNotFoundException的原因   spring调用两个方法以返回Java中的不同页面   httpurlconnection Java禁止的代码错误,但浏览器错误(2)   java画布矩阵转换   java:在另一个java映射中使用“Map”作为值   java“未找到用于解密的证书”(Apache CXF,WSSecurity)   java如何查看JTable中选择的行   java在没有xmlwrappers的情况下重复xml元素序列集   java将垂直直方图打印到控制台   java Spring JDBCTemplate:构造不带特殊字符的JSON   java PayPal RestApi获取用户信息