logfile_parser.logfile_parser.Parser¶
- class Parser(grammar_filename)[source]¶
Bases:
object
Create a Parser object based on the grammar defined in a file
- Parameters
grammar_filename – path to json file specifying grammar for this
parser, or one of the default grammars included with the package
Methods
parse
(filehandle)Parse contents of file according to the loaded grammar
determine_unmatched_part
- __init__(grammar_filename)[source]¶
Create a Parser object based on the grammar defined in a file
- Parameters
grammar_filename – path to json file specifying grammar for this
parser, or one of the default grammars included with the package
Methods
__init__
(grammar_filename)Create a Parser object based on the grammar defined in a file
determine_unmatched_part
(matches, line_pp)parse
(filehandle)Parse contents of file according to the loaded grammar