Handlers, Filters, and other useful plugins for the Python logging system
Project description
# Handlers, Filters, and other useful plugins for the Python logging system
This package define a set of util classes to plug as Filters, Handlers and Formatters in your logging config.
## Filters
SkipException: skips logs for given exception classes
SkipExceptionMsg: skips logs for given exception classes and matching messages.
SkipExceptionMsgRateLimit: same as SkipExceptionMsg but only filters after given rate limit.
RateLimiterFilter: rate limit to avoid flooding the handler
OnlyExcFilter: only accepts exception errors (with exc_info)
LevelRangeFilter: only accepts records whose levels within a range.
## Handlers
CounterHandler: doesn’t emits anything, just counts messages by time and records last timestamp.
DumpOnSignalCounterHandler: same as CounterHandler but also registers a signal handler and when received dumps the counts to file. Useful for monitoring a process externally (example liveness tests)
StoreRecordsHandler: just stores the log records in a list, useful for tests.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file logging-plugins-0.0.2.tar.gz
.
File metadata
- Download URL: logging-plugins-0.0.2.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc71bf08c7d928f561708f03ec2fd9292785ed6e558198753560bc279e69bb4f |
|
MD5 | 304bf0413d474dccb0f7cbc2a7043464 |
|
BLAKE2b-256 | b9fe00979c4c13383cd71771879d3df12c7f40724a02edec7c6be4ed15cdb684 |
File details
Details for the file logging_plugins-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: logging_plugins-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d64fd4fe7da18d48a3f244fe98c28cc63a8f1b245677fe0f245446f9a5af542 |
|
MD5 | 0bf0494fa07ab946792b389fcb59291d |
|
BLAKE2b-256 | 7199b952278cfc950975d47ffe360b98f4bdc8447ffb8c9cae5eeed59c2c92e0 |