Skip to main content

Python logging dictionary configuration from yaml, json or dictionary.

Project description

Python Tools for Setting up Logging

Travis continuous intergration Appveoyr continuous intergration Codecov coverage hosting Code issues Updates Join the chat at https://gitter.im/loggingtools/Lobby

Loggingtools

setup_logging

import logging
from loggingtools import setup_logging
setup_logging('logging.yml')
logger = logging.getLogger('<your_logger>')
...

log_with

import logging
from loggingtools import log_with

...  # setup your loggers

logger = logging.getLogger('<your_logger>')

@log_with(logger)
def function(arg, arg2):
    ...

Installation

Loggingtools can be installed through pip using command

pip install loggingtools

Command Line Client

loggingtools config

Command line arguments

-n, --filename=logging

Filename for logging configuration

-f, --fileformat=yml

Fileformat: {yml, json}

References

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

loggingtools-0.0.2.tar.gz (29.7 kB view hashes)

Uploaded Source

Built Distribution

loggingtools-0.0.2-py3-none-any.whl (13.9 kB view hashes)

Uploaded Python 3

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