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

Source Code for Module PyFoam.Execution.AnalyzedWatcher

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