A handler class which buffers logging records in memory. Whenever each
record is added to the buffer, a check is made to see if the buffer
should be flushed. If it should, then flush() is expected to do what's
needed.
|
|
__init__(self,
capacity)
Initialize the handler with the buffer size. |
|
|
|
|
shouldFlush(self,
record)
Should the handler flush its buffer? |
|
|
|
|
emit(self,
record)
Emit a record. |
|
|
|
|
flush(self)
Override to implement custom flushing behaviour. |
|
|
|
|
close(self)
Close the handler. |
|
|
|
Inherited from Handler:
acquire,
createLock,
format,
handle,
handleError,
release,
setFormatter,
setLevel
Inherited from Filterer:
addFilter,
filter,
removeFilter
|