Skip to main content
Version: 2.5

StreamedLogAsync

Async variant of StreamedLog that is logging in tasks.

Index

Methods

__aenter__

  • async __aenter__(): Self
  • Start the streaming task within the context. Exiting the context will cancel the streaming task.


    Returns Self

__aexit__

  • async __aexit__(exc_type, exc_val, exc_tb): None
  • Cancel the streaming task.


    Parameters

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

    Returns None

start

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


    Returns Task

stop

  • async stop(): None
  • Stop the streaming task.


    Returns None

Page Options