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 details)

Uploaded Source

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

Hashes for logconf-dsl-1.0b2.tar.gz
Algorithm Hash digest
SHA256 b8cb5cb73213c53c2c5b804c75f540fd21d41f58e1ef5cb65f57fea979b4062c
MD5 781c91625aee2a2e5acae39a410f3fac
BLAKE2b-256 9aec55e5eec2afd91d66d3b777f2bc3c5b69ecdb0e3c86e30f790eb218b3844d

See more details on using hashes here.

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