code: def setHandler(self, hdlr):
          r
          if None != self._handler:
              self.removeHandler(self._handler)
          self._handler = hdlr
          self.addHandler(self._handler)
docs: r"""Replace the current handler with a new one.
          
          Parameters
          ----------
          hdlr : logging.Handler
              A subclass of Handler that should used to handle the logging output. 
          
          Notes
          -----
          If none should be replaces, but just one added, use the parent classes
          addHandler() method.