original_docstring:  Add a stream handler to logger 
docstring: Add a stream handler to logger
docstring_tokens: Add a stream handler to logger
code: def __add_streamhandler(self):
          ''' Add a stream handler to logger '''
          self.streamhandler = logging.StreamHandler()
          self.streamhandler.setLevel(self.cmdlevel)
          formatter = CmdColoredFormatter(self.cmdfmt, self.cmddatefmt,
                                          **self.cmd_color_dict) if self.colorful else BasicFormatter(self.cmdfmt,
                                                                                                      self.cmddatefmt)
          self.streamhandler.setFormatter(formatter)
          self.logger.addHandler(self.streamhandler)
code_tokens: def __add_streamhandler ( self ) : self . streamhandler = logging . StreamHandler ( ) self . streamhandler . setLevel ( self . cmdlevel ) formatter = CmdColoredFormatter ( self . cmdfmt , self . cmddatefmt , ** self . cmd_color_dict ) if self . colorful else BasicFormatter ( self . cmdfmt , self . cmddatefmt ) self . streamhandler . setFormatter ( formatter ) self . logger . addHandler ( self . streamhandler )
short_docstring: Add a stream handler to logger
short_docstring_tokens: Add a stream handler to logger
comment: ''' Add a stream handler to logger '''