original_docstring:  Add a file handler to logger 
docstring: Add a file handler to logger
docstring_tokens: Add a file handler to logger
code: def __add_filehandler(self):
          ''' Add a file handler to logger '''
          # path preprocess
          self.__path_preprocess()
  
          # Filehandler
          if self.backup_count == 0:
              self.filehandler = logging.FileHandler(self.filename, self.filemode)
          # RotatingFileHandler
          elif self.when is None:
              self.filehandler = logging.handlers.RotatingFileHandler(self.filename,
                                                                      self.filemode, self.limit, self.backup_count)
          # TimedRotatingFileHandler
          else:
              self.filehandler = logging.handlers.TimedRotatingFileHandler(self.filename,
                                                                           self.when, 1, self.backup_count)
  
          formatter = BasicFormatter(self.filefmt, self.filedatefmt)
          self.filehandler.setFormatter(formatter)
          self.filehandler.setLevel(self.filelevel)
          self.logger.addHandler(self.filehandler)
code_tokens: def __add_filehandler ( self ) : self . __path_preprocess ( ) if self . backup_count == 0 : self . filehandler = logging . FileHandler ( self . filename , self . filemode ) elif self . when is None : self . filehandler = logging . handlers . RotatingFileHandler ( self . filename , self . filemode , self . limit , self . backup_count ) else : self . filehandler = logging . handlers . TimedRotatingFileHandler ( self . filename , self . when , 1 , self . backup_count ) formatter = BasicFormatter ( self . filefmt , self . filedatefmt ) self . filehandler . setFormatter ( formatter ) self . filehandler . setLevel ( self . filelevel ) self . logger . addHandler ( self . filehandler )
short_docstring: Add a file handler to logger
short_docstring_tokens: Add a file handler to logger
comment: ''' Add a file handler to logger '''$SEP$# path preprocess$SEP$# Filehandler$SEP$# RotatingFileHandler$SEP$# TimedRotatingFileHandler