MCPcopy Create free account
hub / github.com/logpai/logparser / __init__

Method __init__

logparser/utils/logloader.py:26–31  ·  view source on GitHub ↗
(self, logformat, n_workers=1)

Source from the content-addressed store, hash-verified

24
25class LogLoader(object):
26 def __init__(self, logformat, n_workers=1):
27 if not logformat:
28 raise RuntimeError("Logformat is required!")
29 self.logformat = logformat.strip()
30 self.headers, self.regex = self._generate_logformat_regex(self.logformat)
31 self.n_workers = n_workers
32
33 def load_to_dataframe(self, log_filepath):
34 """Function to transform log file to dataframe"""

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected