module documentation

Test cases for twisted.logger._format.

Class BufferedHandler A py_logging.Handler that remembers all logged records in a list.
Class StdlibLoggingContainer Continer for a test configuration of stdlib logging objects.
Class STDLibLogObserverTests Tests for STDLibLogObserver.
Function handlerAndBytesIO Construct a 2-tuple of (StreamHandler, BytesIO) for testing interaction with the 'logging' module.
Function nextLine Retrive the file name and line number immediately after where this function is called.
def handlerAndBytesIO() -> tuple[StreamHandler[TextIOWrapper], BytesIO]:

Construct a 2-tuple of (StreamHandler, BytesIO) for testing interaction with the 'logging' module.

Returns
tuple[StreamHandler[TextIOWrapper], BytesIO]handler and io object
def nextLine() -> tuple[str | None, int]:

Retrive the file name and line number immediately after where this function is called.

Returns
tuple[str | None, int]the file name and line number