digraph inheritanced97832544a {
rankdir=UD;
ratio=compress;
size="8.0, 12.0";
"BufferingHandler" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="A handler class which buffers logging records in memory. Whenever each"];
"Handler" -> "BufferingHandler" [arrowsize=0.5,style="setlinewidth(0.5)"];
"Filterer" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="A base class for loggers and handlers which allows them to share"];
"Handler" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Handler instances dispatch logging events to specific destinations."];
"Filterer" -> "Handler" [arrowsize=0.5,style="setlinewidth(0.5)"];
"MemoryLogHandler" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="An experimental log handler that stores temporary records in memory."];
"BufferingHandler" -> "MemoryLogHandler" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
-
class
MemoryLogHandler
(capacity=1000)[source]
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
()[source]
Closes this handler
-
flush
()[source]
Flushes this handler
-
shouldFlush
(record)[source]
Determines if the given record should trigger the flush
Parameters: | record (LogRecord ) – a log record |
Return type: | bool |
Returns: | wheter or not the handler should be flushed |