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.1.tar.gz
(10.5 kB
view details)
File details
Details for the file zen_logging-1.0.1.tar.gz
.
File metadata
- Download URL: zen_logging-1.0.1.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 979c2260484143f922a9cc45800687a8fe5d80fd2f8b60b923a92b323e39da91 |
|
MD5 | 62803658398549f9234ae1814f316876 |
|
BLAKE2b-256 | 8c41791071e4ffba37c828440b32c137ab25ec44e232ccc594db216ae6449743 |