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
Hashes for logging_plugins-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06619dc9246da2f67d15c51e0aac82833d1ffdf8a8a8738be5b03c7d8d8f4383 |
|
MD5 | 20b432c156d11d952f5543223bf6aa5c |
|
BLAKE2b-256 | 18a681ce151d4e1d653f832d23fc44a3722ca1c5c9ed802af51509b639062729 |