Skip to main content

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

Changelog

查看 CHANGELOG.md

License

查看 License 文件

Project details


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)

Uploaded Source

Built Distribution

pyloghandlers-0.0.1-py3-none-any.whl (10.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page