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 2.7, 3.7 and 3.8.
Change log for zconfig_watchedfile
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zconfig_watchedfile-1.2.tar.gz.
File metadata
- Download URL: zconfig_watchedfile-1.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14d8b5e2d99309999ff1c8120f33cac7df080339c52eade6c7e1e9113c847e0b
|
|
| MD5 |
68587ad7ff40e8eadce6791eff823cd9
|
|
| BLAKE2b-256 |
4a23947cac5458c606ed92ddd73bca70668866df603d72a5991bce7c8f8de2da
|
File details
Details for the file zconfig_watchedfile-1.2-py2.py3-none-any.whl.
File metadata
- Download URL: zconfig_watchedfile-1.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
367b9435c0dce1d250e62150bb9f1a7b07278e95ddf0dd37dc5d41864aa3de6a
|
|
| MD5 |
f7bceed9eb269a3f578296682af63603
|
|
| BLAKE2b-256 |
d86ba972ce8c5709bcfc94fb63e9c077388f0bf520f68d2608602b407a37815a
|