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 Documentation Status

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}

Project details


Release history Release notifications

This version
History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
loggingtools-0.0.4-py3-none-any.whl (15.4 kB) Copy SHA256 hash SHA256 Wheel py3 Apr 20, 2017
loggingtools-0.0.4.tar.gz (31.5 kB) Copy SHA256 hash SHA256 Source None Apr 20, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page