Skip to main content

A python LoggerAdapter class that provides automatic indenting for logging.

Project description

A python helper class that provides automatic indenting for logging.

This will allow you to turn logs that would normally look like this:

root    DEBUG   Loading system
root    DEBUG   Checking for the right record
root    DEBUG   Checking record 1
root    DEBUG   Checking name
root    DEBUG   Not the right record
root    DEBUG   Checking record 2
root    DEBUG   checking name
root    DEBUG   Name checks, checking phone number
root    DEBUG   Phone number checks, VALID record!
root    DEBUG   Returning record 2

Into something like this:

root    DEBUG   Loading system
root    DEBUG       Checking for the right record
root    DEBUG           Checking record 1
root    DEBUG               Checking name
root    DEBUG                   Not the right record
root    DEBUG           Checking record 2
root    DEBUG               checking name
root    DEBUG                   Name checks, checking phone number
root    DEBUG               Phone number checks, VALID record!
root    DEBUG           Returning record 2
https://travis-ci.org/dstrohl/Python_log_indenter.svg?branch=master

Project details


Release history Release notifications

This version
History Node

0.9

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
python_log_indenter-0.9-py3-none-any.whl (8.7 kB) Copy SHA256 hash SHA256 Wheel 3.4 Apr 23, 2015
python_log_indenter-0.9.tar.gz (6.3 kB) Copy SHA256 hash SHA256 Source None Apr 23, 2015
python_log_indenter-0.9.zip (9.1 kB) Copy SHA256 hash SHA256 Source None Apr 23, 2015

Supported by

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