Skip to main content

ZConfig statement to register a logging handler using WatchedFileHandler

Project description

zconfig_watchedfile

Provides a ZConfig statement to register a logging handler that uses a WatchedFileHandler, which is helpful for integrating with an external logrotate service:

%import zconfig_watchedfile
<logger>
  name example

  <watchedfile>
    path /path/to/logfile.log
  </watchedfile>
</logger>

The <watchedfile> supports both the default ZConfig settings for handlers (formatter, dateformat, level) and the parameters of WatchedFileHandler (mode, encoding, delay).

This package is compatible with Python version 3.8 up to 3.11.

Change log for zconfig_watchedfile

2.0 (2023-08-17)

  • Drop support for all Python versions older than 3.8.

  • Add support for Python 3.9, 3.10, 3.11.

1.2 (2019-12-04)

  • Migrated to github.

  • Add support for Python 3.7 and 3.8.

1.1 (2019-01-25)

  • Make setup.py compatible with newer setuptools versions.

  • Drop support for Python 2.6.

1.0 (2013-11-29)

  • initial release

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

zconfig_watchedfile-2.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zconfig_watchedfile-2.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file zconfig_watchedfile-2.0.tar.gz.

File metadata

  • Download URL: zconfig_watchedfile-2.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for zconfig_watchedfile-2.0.tar.gz
Algorithm Hash digest
SHA256 122d9a3c91611faa9c49fb15f2875adfc2b77e5e3ebb386cb3a75f011c4e2a3e
MD5 0fab35fc2eb4fd6f7a5dbd783c6ed57a
BLAKE2b-256 617d7525bad35c19a05450eb498af6bdec606c02990e6abc37218d008a4ffc6a

See more details on using hashes here.

File details

Details for the file zconfig_watchedfile-2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zconfig_watchedfile-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93e2848de44da4954a21ee6d9dfa206e21119fd855206d23603b25abeaf20182
MD5 247cc4041f950b82089837591b64629b
BLAKE2b-256 71497bb20e5934bd109f7a38837df2e3704a4b2dbfa44b22b1eda5702fef6092

See more details on using hashes here.

Supported by

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