Package PyFoam :: Package LogAnalysis :: Module EchoLineAnalyzer
[hide private]
[frames] | no frames]

Source Code for Module PyFoam.LogAnalysis.EchoLineAnalyzer

 1  #  ICE Revision: $Id$ 
 2  """Echos a line""" 
 3   
 4  from .LogLineAnalyzer import LogLineAnalyzer 
 5   
 6  from PyFoam.ThirdParty.six import print_ 
 7   
8 -class EchoLineAnalyzer(LogLineAnalyzer):
9 """Test implementation. Simply echos every line it gets""" 10
11 - def __init__(self):
13
14 - def doAnalysis(self,line):
15 print_("<"+self.parent.getTime()+">"+line+"<")
16 17 # Should work with Python3 and Python2 18