log_stream
log_stream
¶
SSE log broadcasting for real-time pipeline log streaming.
LogBroadcaster()
¶
Captures loguru messages and streams them to SSE subscribers.
Source code in pspcz_analyzer/admin/log_stream.py
start()
¶
Install loguru sink to capture log lines.
Source code in pspcz_analyzer/admin/log_stream.py
stop()
¶
subscribe()
async
¶
Yield log lines as SSE events wrapped in divs. Sends buffered history first.