Skip to content

joar/logconf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logconf-dsl

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'])
    ]
)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages