PyDocs

Nav

Generic Operating System Services

MemoryHandler

  • MemoryHandler(capacity, flushLevel=ERROR, target=None, flushOnClose=True)
A handler class which buffers logging records in memory, periodically
flushing them to a target handler. Flushing occurs whenever the buffer
is full, or when an event of a certain severity or greater is seen.
Changed in 3.6
  • 3.6: The flushOnClose parameter was added.
Members of MemoryHandler

c

close
Flush, if appropriately configured, set the target to None and lose the buffer.

f

flush
For a MemoryHandler, flushing means just sending the buffered records to the target, if there is one.

s

setTarget
Set the target handler for this handler.
shouldFlush
Check for buffer full or a record at the flushLevel or higher.
0 Examples
No examples for logging.handlers/MemoryHandler.
See Also
No see-alsos for logging.handlers/MemoryHandler
0 Notes
No notes for MemoryHandler