session_logger
¶
Per-session JSONL event logger.
Each session gets its own JSONL file under the configured log root so post-hoc analytics (enhancer latency, GPU assignment, segment timings) can be recovered without a tracing backend. The internal UI uses this format; keeping the same shape makes log tooling portable.
Classes¶
fastvideo.entrypoints.streaming.session_logger.SessionLogEvent
dataclass
¶
One line in the session JSONL file.
fastvideo.entrypoints.streaming.session_logger.SessionLogger
¶
SessionLogger(log_dir: str | None)
Append-only JSONL logger keyed by session id.
Thread-safe; the server may be writing from multiple asyncio tasks (fMP4 encoder thread + control-frame handler) for the same session.