logparser/logparser.py
def load_from_file(self, filename=None):
        """load log content from file.
        """
        try:
            with open(filename) as fp:
                self.lines = fp.readlines()
        except IOError as err:
            print(f"Can't open config file: {filename}\n{err}")
            exit(1)
load log content from file.
        
load log content from file.
load log content from file .
def load_from_file(self, filename=None):
        try:
            with open(filename) as fp:
                self.lines = fp.readlines()
        except IOError as err:
            print(f"Can't open config file: {filename}\n{err}")
            exit(1)
def load_from_file ( self , filename = None ) : try : with open ( filename ) as fp : self . lines = fp . readlines ( ) except IOError as err : print ( f"Can't open config file: {filename}\n{err}" ) exit ( 1 )
load log content from file.
load log content from file .
"""load log content from file.
        """
self
filename