Skip to content

paluh/great-justice-with-logging

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How are you gentlemen !!

This module provides an easy way to debug broken code…. It is also a fork of original great package and extends it by providing simple logging handlers and formatters.

What you say !!

from great_justice import what_happen
try:
    # ...
except:
    what_happen()

Or make it even better:

from great_justice import take_your_time
with take_your_time():
    # ...

Results:

great-justice 2012.6

To get a nice debug log just pass a logger object:

from great_justice import what_happen
import logging
logger = logging.getLogger(__name__)
try:
    # ...
except:
    what_happen(logger=logger)

Packages

No packages published

Languages

  • Python 100.0%