A python log handler packages with supported Multi-process
Project description
pyloghandlers
pyloghandlers
是对logging.handlers
中的类进行了继承重写,解决了在多进程下日志写入混乱的问题。
这是concurrent-log-handler的简化版本,
引用里面的核心方法,去掉了一些多余功能, 支持上按时间切割类。
变更汇总
- 删除
- 移除日志文件压缩功能
- 移除文件授权账号授权功能
- 移除
python2.x
的支持 - 移除
debug
功能 - 移除夏令时(相比于
logging.handlers
) - 移除日志队列
- 修改
- 方法名和属性名的重命名
- 类的重定义和重命名
- 加锁文件名定义逻辑
- 文件大小判断逻辑(还原成logging.handlers逻辑)
- 新增
- 支持时间滚动(相比于logging.handlers有改动)
Links
Instructions and Usage
Installation
pip install pyloghandlers
Simple Example
class PylogRotatingFileHandler
的使用方法, 查看 pylog_rotating_file_handler.mdclass PylogTimedRotatingFileHandler
的使用方法, 查看 pylog_timed_rotating_file_handler.md
Changelog
查看 CHANGELOG.md
License
查看 License
文件
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyloghandlers-0.0.1.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for pyloghandlers-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc491b1117786b34ebc1a0c1f33f4c7a38a82391ce7a690d3232db611a28e43c |
|
MD5 | 0fba956688cf9e698c6f0a21a08ece1d |
|
BLAKE2b-256 | 067c756758743fdcbd68d8f13115f80b9ecf772341ddfc9b71af9bea37e1964d |