一个易于使用的日志包装器。
mechachainsaw的Python项目详细描述
机械链锯
这个项目正在开发中,打算用作mechasqueak3的日志库。
但是,它确实有作为独立日志工具的应用程序。
此项目当前位于pre release中。使用风险自负!
要求
- Python3.7+
- 彩色日志库
安装
这是python库。使用pip/pipenv安装
并用import mechachainsaw
使用量
frommechachainsawimportLogger``log=Logger("Namespace","Logfile.txt")log.info("This is an info-level entry!")
会让您:
<2019-01-12 15:17:40,572 Namespace> [INFO] This is an info-level entry!
许可证
mecha chainsaw根据bsd 3子句许可证获得许可。