Zen logging, a simple python logging library that extends logging.
Project description
Zen Logging
@loggify
This decorator can be added to any class to initialize it with a logger, and add extra logging functionality to that class.
The following additional kwargs are handled in init:
logger
(Logger) Used as the parent logger, if not set, uses the root logger._log_init
(bool) Can be passed to loggified classes, to enable or disable additional initialization logging._log_bump
(int) Changes the log level for added loggers.
Loggified classes will also log use of __getattribute__, __setattr__, and __getitem__.
Functions returned from __getattribute__ will automatically log additioanl information such as passed args and results.
ColorLognameFormatter
A logging.Formatter
which colors the loglevel portion.
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
zen_logging-1.1.0.tar.gz
(10.4 kB
view details)
File details
Details for the file zen_logging-1.1.0.tar.gz
.
File metadata
- Download URL: zen_logging-1.1.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | deea523dd85f863b1132e5354c88587af8a7d0daf29cbb5df5f679794c0eff64 |
|
MD5 | 2dcfcdb75594f1d9d2f7ef5848c57c1a |
|
BLAKE2b-256 | 3a90dae2121d8053b96984ba36fd0d76b990af93676420fd8505d7b27df66a00 |