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

Method parse

logparser/Logram/src/Logram.py:40–59  ·  view source on GitHub ↗
(self, log_file_basename)

Source from the content-addressed store, hash-verified

38 self.rex = rex
39
40 def parse(self, log_file_basename):
41 log_file = os.path.join(self.indir, log_file_basename)
42 print("Parsing file: " + log_file)
43 (
44 doubleDictionaryList,
45 triDictionaryList,
46 allTokenList,
47 allMessageList,
48 ) = dictionaryBuilder(self.log_format, log_file, self.rex)
49 tokenMatch(
50 allTokenList,
51 doubleDictionaryList,
52 triDictionaryList,
53 self.doubleThreshold,
54 self.triThreshold,
55 self.outdir,
56 log_file_basename,
57 allMessageList,
58 )
59 print("Parsing done.")

Callers 2

benchmark.pyFile · 0.45
demo.pyFile · 0.45

Calls 2

dictionaryBuilderFunction · 0.85
tokenMatchFunction · 0.85

Tested by

no test coverage detected