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
Release history Release notifications | RSS feed
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)