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 有改动)

tips:上面的变更汇总是pyloghandlers v0.0.1 相比于 concurrent-log-handler v0.9.20 的对比结果

相关链接

安装与使用

安装
pip install pyloghandlers
使用

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.3.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file pyloghandlers-0.0.3.tar.gz.

File metadata

  • Download URL: pyloghandlers-0.0.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8

File hashes

Hashes for pyloghandlers-0.0.3.tar.gz
Algorithm Hash digest
SHA256 96b2a974b1885f74ff0b50c53a8677d6565dfa864a2304e52eb2d78454a9d435
MD5 6bfcd95f55519b8ceed209f0511ea94e
BLAKE2b-256 537424138b9a4717ab89cfb5275c01d36b8cd3b4760f9ca0d121eec32366f8b9

See more details on using hashes here.

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