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.0.0.tar.gz
(10.4 kB
view details)
File details
Details for the file zen_logging-1.0.0.tar.gz
.
File metadata
- Download URL: zen_logging-1.0.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 | 42880c44b55b089beccb6141c51e46d5b23ce3e2ac8ec1acd54943c11437e6b5 |
|
MD5 | 12f88a89a114f430514c16a317629dd7 |
|
BLAKE2b-256 | 774710f30f9eef1310c14c45ec6b336c24556ac1b54c4adc0bb607bc212ca759 |