def __iter__(self):
    match = _lineRegex.match
    for line in self.f:
      m = match(line)
      if m:
        try:
          log_line = ApacheLogLine(*m.groups())
          yield log_line
        except GeneratorExit:
           pass
        except Exception as e:
          print "NON_COMPLIANT_FORMAT: ", line
Returns a log line object for each iteration.
dataset/ETHPy150Open bkjones/loghetti/apachelogs.py/ApacheLogFile.__iter__