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

Method printTree

logparser/SHISO/SHISO.py:342–355  ·  view source on GitHub ↗
(self, node, dep)

Source from the content-addressed store, hash-verified

340 )
341
342 def printTree(self, node, dep):
343 pStr = ""
344 for i in range(dep):
345 pStr += "\t"
346
347 if len(node.format) == 0:
348 pStr += "No format node"
349 else:
350 pStr += " ".join(node.format)
351 # print pStr
352 if len(node.childL) == 0:
353 return 1
354 for child in node.childL:
355 self.printTree(child, dep + 1)
356
357 def parse(self, logname):
358 print("Parsing file: " + os.path.join(self.path, logname))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected