code: def accept(self, logevent):
          
          if self.fromReached and self.seek_to:
              if self.seek_to != -1:
                  self.toReached = (self.mlogfilter.args['logfile'][0]
                                    .filehandle.tell() >= self.seek_to)
              return True
          else:
              # slow version has to check each datetime
              dt = logevent.datetime
  
              # if logevent has no datetime, accept if between --from and --to
              if dt is None:
                  return self.fromReached
  
              if self.fromDateTime <= dt <= self.toDateTime:
                  self.toReached = False
                  self.fromReached = True
                  return True
  
              elif dt > self.toDateTime:
                  self.toReached = True
                  return False
  
              else:
                  return False
docs: Process line.
  
          Overwrite BaseFilter.accept() and return True if the provided
          logevent should be accepted (causing output), or False if not.