taurus taurus

Previous topic

LoopList

Next topic

NullCodec

This Page

MemoryLogHandler

Inheritance diagram of MemoryLogHandler

class MemoryLogHandler(capacity=1000)

Bases: list, logging.handlers.BufferingHandler

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

close()

Closes this handler

flush()

Flushes this handler

shouldFlush(record)

Determines if the given record should trigger the flush

Parameters:record (:class:~`logging.LogRecord`) – a log record
Return type::class:~`bool`
Returns:wheter or not the handler should be flushed