Skip to main content
Version: 2.5

StreamedLogSync

Sync variant of StreamedLog that is logging in threads.

Index

Methods

__enter__

  • __enter__(): Self
  • Start the streaming thread within the context. Exiting the context will finish the streaming thread.


    Returns Self

__exit__

  • __exit__(exc_type, exc_val, exc_tb): None
  • Stop the streaming thread.


    Parameters

    • exc_type: type[BaseException] | None
    • exc_val: BaseException | None
    • exc_tb: TracebackType | None

    Returns None

start

  • start(): Thread
  • Start the streaming thread. The caller has to handle any cleanup by manually calling the stop method.


    Returns Thread

stop

  • stop(): None
  • Signal the streaming thread to stop logging and wait for it to finish.


    Returns None

Page Options