Package buildbot :: Package process :: Module buildstep :: Class LogLineObserver
[frames] | no frames]

Class LogLineObserver

source code

LogObserver --+
              |
             LogLineObserver
Known Subclasses:

Instance Methods
 
__init__(self) source code
 
setMaxLineLength(self, max_length)
Set the maximum line length: lines longer than max_length are dropped.
source code
 
outReceived(self, data)
This will be called with chunks of stdout data.
source code
 
errReceived(self, data)
This will be called with chunks of stderr data.
source code
 
outLineReceived(self, line)
This will be called with complete stdout lines (not including the delimiter).
source code
 
errLineReceived(self, line)
This will be called with complete lines of stderr (not including the delimiter).
source code

Inherited from LogObserver: __providedBy__, __provides__, logChunk, setLog, setStep

Class Variables

Inherited from LogObserver: __implemented__

Method Details

setMaxLineLength(self, max_length)

source code 

Set the maximum line length: lines longer than max_length are dropped. Default is 16384 bytes. Use sys.maxint for effective infinity.

outReceived(self, data)

source code 

This will be called with chunks of stdout data. Override this in your observer.

Overrides: LogObserver.outReceived
(inherited documentation)

errReceived(self, data)

source code 

This will be called with chunks of stderr data. Override this in your observer.

Overrides: LogObserver.errReceived
(inherited documentation)

outLineReceived(self, line)

source code 

This will be called with complete stdout lines (not including the delimiter). Override this in your observer.

errLineReceived(self, line)

source code 

This will be called with complete lines of stderr (not including the delimiter). Override this in your observer.