StreamedLogSync
Index
Methods
__enter__
Start the streaming thread within the context. Exiting the context will finish the streaming thread.
Returns Self
__exit__
Stop the streaming thread.
Parameters
exc_type: type[BaseException] | None
exc_val: BaseException | None
exc_tb: TracebackType | None
Returns None
start
Start the streaming thread. The caller has to handle any cleanup by manually calling the
stopmethod.Returns Thread
stop
Signal the streaming thread to stop logging and wait for it to finish.
Returns None
Sync variant of
StreamedLogthat is logging in threads.