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.
- Host: GitHub
- URL: https://github.com/gocept/zconfig_watchedfile
- Owner: gocept
- License: other
- Archived: true
- Created: 2019-12-04T09:37:20.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-08-17T05:51:56.000Z (almost 3 years ago)
- Last Synced: 2025-11-29T06:54:53.573Z (7 months ago)
- Topics: handler, logging, watchedfilehandler, zconfig
- Language: Python
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE.txt
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