API Reference

class errorhandler.ErrorHandler(level=logging.ERROR, logger='', install=True)

This constructs an ErrorHandler.

  • level – This specifies the logging level at which the error handler will fire. Any message logged at or above this level will trigger the error handler.
  • logger – This specifies the logger on which the error handler will be installed. The default is the root logger.
  • install – If True, the handler is automatically installed. If False, the handler has to be manually installed by calling its install() method

Installs this ErrorHandler object in the logger specified during instantiation.


Resets this ErrorHandler object.