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.1.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for wcpan_logging-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7f22dc2c7324e9beef9543c8777aa03e40bb0c17863378551af121205738ae9 |
|
MD5 | a07307cc7c333934cedba5a9c0baaf40 |
|
BLAKE2b-256 | 865e3ec79953563ba696b9e98ce639a29e498e9b7a7b1b67c92cec2d69cef42d |