Home | Trees | Index | Help |
|
---|
Package logging :: Module handlers :: Class BufferingHandler |
|
Filterer
--+ |Handler
--+ | BufferingHandler
LevelHandler
Method Summary | |
---|---|
Initialize the handler with the buffer size. | |
Emit a record. | |
Override to implement custom flushing behaviour. | |
Should the handler flush its buffer? | |
Inherited from Handler | |
Acquire the I/O thread lock. | |
Tidy up any resources used by the handler. | |
Acquire a thread lock for serializing access to the underlying I/O. | |
Format the specified record. | |
Conditionally emit the specified logging record. | |
Handle errors which occur during an emit() call. | |
Release the I/O thread lock. | |
Set the formatter for this handler. | |
Set the logging level of this handler. | |
Inherited from Filterer | |
Add the specified filter to this handler. | |
Determine if a record is loggable by consulting all the filters. | |
Remove the specified filter from this handler. |
Method Details |
---|
__init__(self,
capacity)
Initialize the handler with the buffer size.
|
emit(self, record)Emit a record. Append the record. If shouldFlush() tells us to, call flush() to process the buffer.
|
flush(self)Override to implement custom flushing behaviour. This version just zaps the buffer to empty.
|
shouldFlush(self, record)Should the handler flush its buffer? Returns true if the buffer is up to capacity. This method can be overridden to implement custom flushing strategies. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Apr 14 16:39:26 2005 | http://epydoc.sf.net |