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.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for wcpan_logging-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94fc764ebd68cb8b2f083d147cea90cc77566764288e3de1cdcb1b0e6e382a32 |
|
MD5 | 4906346db300f5decc6a37c350498213 |
|
BLAKE2b-256 | f5ba6410e77ac4a765aa20640b0366011ae4d0a11f5de8bde7ccb1e9662702b6 |