An open API service indexing awesome lists of open source software.

https://github.com/gocept/zconfig_watchedfile

Provides a ZConfig statement to register a logging handler that uses a WatchedFileHandler.
https://github.com/gocept/zconfig_watchedfile

handler logging watchedfilehandler zconfig

Last synced: 6 months ago
JSON representation

Provides a ZConfig statement to register a logging handler that uses a WatchedFileHandler.

Awesome Lists containing this project

README

          

===================
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

name example


path /path/to/logfile.log

The ```` 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.

.. _`WatchedFileHandler`: https://docs.python.org/3.11/library/logging.handlers.html#watchedfilehandler