Home | Trees | Indices | Help |
---|
|
Exception handler with detailled error reporting support.
Extends cgitb.Hook
, add a boolean display
option indicating wether errors should be displayed on stderr or not.
Additionnally, each detailled error report is written to a file on disk
on logdir
directory.
>>> sys.excepthook = ExceptionHook(format='text', logdir='/tmp', ... file=sys.stderr, display=False)
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
|
add-on to default cgitb.handle(): - if logdir doesn't exists, create it - if logdir is set, write error report in a text or html file, depending on self.format
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Jan 16 19:09:13 2008 | http://epydoc.sourceforge.net |