code: def accept(self, logevent):
          
          dt = logevent.datetime
          if not dt:
              return False
  
          mask = next((mask for mask in self.mask_list
                       if mask[0] < dt and mask[1] > dt), None)
  
          return True if mask else False
docs: Process line.
  
          Overwrite BaseFilter.accept() and return True if the provided
          logevent should be accepted (causing output), or False if not.