code: def do_bugout(self, args):
          
          args = args.split()
          if _debug: ConsoleCmd._debug("do_bugout %r", args)
  
          # get the logger name and logger
          if args:
              loggerName = args[0]
              if loggerName in logging.Logger.manager.loggerDict:
                  logger = logging.getLogger(loggerName)
              else:
                  logger = None
          else:
              loggerName = '__root__'
              logger = logging.getLogger()
  
          # remove the logging handler
          if not logger:
              self.stdout.write("not a valid logger name\n")
          elif not loggerName in self.handlers:
              self.stdout.write("no handler for %s\n" % loggerName)
          else:
              handler = self.handlers[loggerName]
              del self.handlers[loggerName]
  
              # see if this (or its parent) is a module level logger
              if hasattr(logger, 'globs'):
                  logger.globs['_debug'] -= 1
              elif hasattr(logger.parent, 'globs'):
                  logger.parent.globs['_debug'] -= 1
  
              # remove it from the logger
              logger.removeHandler(handler)
              self.stdout.write("handler to %s removed\n" % loggerName)
          self.stdout.write("\n")
docs: bugout [ <logger> ]  - remove a console logging handler from a logger