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 | RSS feed

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
Filename, size python_log_indenter-0.9.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View
Filename, size python_log_indenter-0.9.zip (9.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page