(
    lst: Optional[List[LogMessage]],
    level=logbook.NOTSET,
)
return ListLogHandler(lst=lst, level=level, bubble=True)
Return a context manager that temporarly attaches a list to the logger.
Return a context manager that temporarly attaches a list to the logger.
Return a context manager that temporarly attaches a list to the logger .
def list_handler(
    lst: Optional[List[LogMessage]],
    level=logbook.NOTSET,
) -> ContextManager:
    """Return a context manager that temporarly attaches a list to the logger.
    """
    return ListLogHandler(lst=lst, level=level, bubble=True)
def list_handler ( lst : Optional [ List [ LogMessage ] ] , level = logbook . NOTSET , ) -> ContextManager : return ListLogHandler ( lst = lst , level = level , bubble = True )