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}

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.4.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

loggingtools-0.0.4-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file loggingtools-0.0.4.tar.gz.

File metadata

File hashes

Hashes for loggingtools-0.0.4.tar.gz
Algorithm Hash digest
SHA256 161afedc33cce46d1444474606faf42524489f5a4859cb506cea353a3c345f0b
MD5 e09f0a22776787697c32fbbdce76b51a
BLAKE2b-256 513f3ebdd23ad031a5e56c2771206dd30f61c7b28d8f60e5d7bd9438f866d9d9

See more details on using hashes here.

File details

Details for the file loggingtools-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for loggingtools-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bb5c75b29175b127f7449daef55cdca1bd7bc9f44478c184e7d9f89a86f5aec7
MD5 043539ccd52efe099d2932e1f2328e20
BLAKE2b-256 f16c382d92896708da2025542a3ae996fa73a6968cd388ad0049203281440266

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