【文件属性】:
文件名称:diary:python的异步记录器模块
文件大小:29KB
文件格式:ZIP
更新时间:2021-04-28 12:50:59
Python
Diary是一个轻量级的,无依赖的异步日志记录模块。 对于简单而广泛的用例,日记具有易于使用的API。
目录
日记数据库
日记线程
格式
等级log_level
日记命令行
贡献入门
执照
特征
所有日志记录过程都是异步的,不会中断程序流程
没有依赖关系
写入数据库,文本文件或同时写入两者
使用自定义:
格式设定
数据库配置
记录级别
安装
从pypi:
$ pip install diary
或者:
$ easy_install diary
或从github克隆:
$ git clone https://github.com/SamGRosen/diary.git
$ cd diary
$ sudo python setup.py install
支持
请随时在github仓库上发布问题。
拉取请求非常受欢迎。
简单的API
快速使用
导入主要对象:
from
【文件预览】:
diary-master
----setup.py(1KB)
----.gitignore(172B)
----requirements.txt(0B)
----.travis.yml(250B)
----LICENSE(1KB)
----examples()
--------file_processing()
--------barebones()
----README.rst(14KB)
----tests()
--------diary_test.py(11KB)
--------formats_test.py(1KB)
--------levels_test.py(2KB)
--------__init__.py(0B)
--------logdb_test.py(2KB)
--------command_test.py(1KB)
--------api_test.py(6KB)
--------events_test.py(5KB)
--------run_tests.py(2KB)
--------logthread_test.py(4KB)
--------performance_measure.py(2KB)
----.coveragerc(167B)
----diary()
--------diary.py(8KB)
--------levels.py(2KB)
--------bin()
--------__init__.py(211B)
--------logthread.py(1KB)
--------events.py(3KB)
--------formats.py(2KB)
--------RepeatedTimer.py(702B)
--------logdb.py(3KB)
----MANIFEST(207B)