def probe(self):
<EOL>if not self.validate_file_handler():<EOL><INDENT>return []<EOL><DEDENT>messages = []<EOL>for line in self.fh.readlines(self.max_lines):<EOL><INDENT>data = {"<STR_LIT:path>":self.path}<EOL>msg = self.new_message()<EOL>parsed = self.process_line(line, data)<EOL>if not parsed:<EOL><INDENT>continue<EOL><DEDENT>data.update(parsed)<EOL>data = self.process_probe(data)<EOL>msg["<STR_LIT:data>"] = [data]<EOL>messages.append(msg)<EOL><DEDENT>messages = self.process_messages(messages)<EOL>return messages<EOL>
Probe the file for new lines