def ParseLogLine(line):
 parsed = re.match(kLineRe, line)
 if (not parsed):
  return None
 try:
  (day, time, pid, module, msg) = parsed.groups()
  return (day, time, module, msg)
 except Exception as e:
  logging.warning(('RE matched "%s", but extracted wrong numbers of items: %r' % (line, e)))
  return None

def ParseLogLine ( line ) : parsed = re . match ( kLineRe , line ) if ( not parsed ) : return None try : ( day , time , pid , module , msg ) = parsed . groups ( ) return ( day , time , module , msg ) except Exception as e : logging . warning ( ( 'RE matched "%s", but extracted wrong numbers of items: %r' % ( line , e ) ) ) return None
attempt to parse a log line and extract day .