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 hashes)

Uploaded Source

Built Distribution

zconfig_watchedfile-2.0-py3-none-any.whl (5.3 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