MemoryLogHandler

Inheritance diagram of MemoryLogHandler
class MemoryLogHandler(capacity=1000)[source]

An experimental log handler that stores temporary records in memory. When flushed it passes the records to another handler

Import from taurus.core.util.log as:

from taurus.core.util.log import MemoryLogHandler
close()[source]

Closes this handler

flush()[source]

Flushes this handler

shouldFlush(record)[source]

Determines if the given record should trigger the flush

Parameters:

record (logging.LogRecord) – a log record

Returns:

wheter or not the handler should be flushed

Return type:

bool