Configuration generator for builtin logging module.
Project description
wcpan.logging
A configuration generator for builtin logging module.
This module does not have any side effect, it is the user's choice to put it
into logging.dictConfig
.
import logging
from wcpan.logging import ConfigBuilder
logging.dictConfig(
ConfigBuilder(path="/your/log", rotate=True)
.add("moduleA", level="DEBUG")
.add("moduleB", "moduleC", level="INFO")
.to_dict()
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wcpan_logging-2.0.3.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for wcpan_logging-2.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 537b16c442ff4d3976ae802a6d5b739eb24d8eace6363a6f29b00f2c58ae656d |
|
MD5 | 2ee79cf150e9802f44261a6b7dc604a4 |
|
BLAKE2b-256 | fd3fd81b03900ae324a63b82e86119f9c7be0ba073c888c932a768b56ad26fb5 |