Skip to content

A python helper class that provides additional log formatting such as indenting, counters.

License

Notifications You must be signed in to change notification settings

dstrohl/Python_log_indenter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Log Indenter Helper Class

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

About

A python helper class that provides additional log formatting such as indenting, counters.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages