Skip to main content

Python logging configuration DSL

Project description

A DSL for configuration of Python’s logging module.

Installation

From PyPI with pip:

pip install logconf-dsl

directly from git, with pip.

pip install -e git+git@github.com:joar/logconf.git

Usage

import logconf
from logconf.dsl import Logger, Handler

logconf.configure(
    handlers=Handler('default',
                     'logging.StreamHandler',
                     level='DEBUG'),
    root=Logger(level='ERROR',
                handlers=['default']),
    loggers=[
        Logger('foo',
               'DEBUG',
               handlers=['default'])
    ]
)

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

logconf-dsl-1.0b2.tar.gz (395.5 kB view hashes)

Uploaded Source

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