zephyr/scripts/logging/dictionary/dictionary_parser/log_parser.py
David Leach f5b0f92bb7 scripts: dictionary: rename parser module to avoid name collision
The parser module collides with a module in python called parser.
Doesn't seem to be a problem in Linux but for some reason the
search/include order in Windows causes python to import the wrong
parser. The change is to rename the module to dictionary_parser
to avoid the name space collision.

fixes: #36339

Signed-off-by: David Leach <david.leach@nxp.com>
2021-06-24 04:22:33 -05:00

23 lines
437 B
Python

#!/usr/bin/env python3
#
# Copyright (c) 2021 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
"""
Abstract Class for Dictionary-based Logging Parsers
"""
import abc
class LogParser(abc.ABC):
"""Abstract class of log parser"""
def __init__(self, database):
self.database = database
@abc.abstractmethod
def parse_log_data(self, logdata, debug=False):
"""Parse log data"""
return None