Package hotshot :: Module log :: Class LogReader
[hide private]
[frames] | no frames]

Class LogReader

Instance Methods [hide private]
 
__init__(self, logfn)
 
close(self)
 
fileno(self)
Return the file descriptor of the log reader's log file.
 
addinfo(self, key, value)
This method is called for each additional ADD_INFO record.
 
get_filename(self, fileno)
 
get_filenames(self)
 
get_fileno(self, filename)
 
get_funcname(self, fileno, lineno)
 
next(self, index=0)
 
__iter__(self)
 
_decode_location(self, fileno, lineno)
 
_loadfile(self, fileno)
Method Details [hide private]

addinfo(self, key, value)

 

This method is called for each additional ADD_INFO record.

This can be overridden by applications that want to receive these events. The default implementation does not need to be called by alternate implementations.

The initial set of ADD_INFO records do not pass through this mechanism; this is only needed to receive notification when new values are added. Subclasses can inspect self._info after calling LogReader.__init__().