API Reference
========================================

.. module:: errorhandler

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

    This constructs an ErrorHandler.

    :param 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.

    :param logger: 

      This specifies the logger on which the error handler will be
      installed. The default is the root logger.

    :param install: 

      If True, the handler is automatically installed. If False, the
      handler has to be manually installed by calling its 
      :meth:`install` method

    .. method:: install

      Installs this :class:`ErrorHandler` object in the logger
      specified during instantiation. 

    .. method:: reset

      Resets this :class:`ErrorHandler` object.
