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 details)
File details
Details for the file logconf-dsl-1.0b2.tar.gz
.
File metadata
- Download URL: logconf-dsl-1.0b2.tar.gz
- Upload date:
- Size: 395.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8cb5cb73213c53c2c5b804c75f540fd21d41f58e1ef5cb65f57fea979b4062c |
|
MD5 | 781c91625aee2a2e5acae39a410f3fac |
|
BLAKE2b-256 | 9aec55e5eec2afd91d66d3b777f2bc3c5b69ecdb0e3c86e30f790eb218b3844d |