(self, logformat, n_workers=1)
| 24 | |
| 25 | class 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""" |
nothing calls this directly
no test coverage detected