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

0.9

Download files

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

Files for python_log_indenter, version 0.9
Filename, size File type Python version Upload date Hashes
Filename, size python_log_indenter-0.9-py3-none-any.whl (8.7 kB) File type Wheel Python version 3.4 Upload date Hashes View hashes
Filename, size python_log_indenter-0.9.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View hashes
Filename, size python_log_indenter-0.9.zip (9.1 kB) File type Source Python version None Upload date Hashes View hashes

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