Package PyFoam :: Package Execution :: Module AnalyzedWatcher
[hide private]
[frames] | no frames]

Source Code for Module PyFoam.Execution.AnalyzedWatcher

 1  """Watches output and analyzes it""" 
 2   
 3  from BasicWatcher import BasicWatcher 
 4  from AnalyzedCommon import AnalyzedCommon 
 5   
6 -class AnalyzedWatcher(BasicWatcher,AnalyzedCommon):
7 - def __init__(self,filename,analyzer,silent=False,tailLength=1000,sleep=0.1):
8 """@param analyzer: analyzer 9 @param filename: name of the logfile to watch 10 @param silent: if True no output is sent to stdout 11 @param tailLength: number of bytes at the end of the fail that should be output. 12 Because data is output on a per-line-basis 13 @param sleep: interval to sleep if no line is returned""" 14 15 BasicWatcher.__init__(self,filename,silent=silent,tailLength=tailLength,sleep=sleep) 16 AnalyzedCommon.__init__(self,self.filename,analyzer)
17