Skip to main content

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)

Uploaded Source

Built Distribution

wcpan_logging-2.1.0-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page