Skip to main content

Module log_stream

Module log_stream 

Source
Expand description

A fixed-row, virtualized presentation of caller-owned log entries.

This component owns no process and reads no stream. The caller supplies every entry, its stable identity, already-formatted timestamp, level and source strings, and any search-hit ranges. Appending and filtering remain caller operations.

§One entry, one fixed slot

LogStream composes the crate’s List, so only the rows inside its bounded viewport are laid out. Every entry is one clipped, non-wrapping slot. That makes a large stream viewport-cheap, at the explicit cost that a long message does not grow its row. The list node publishes the total while only visible entry identities appear in the semantic tree.

§Following is view state

Following the newest entry, and pausing that follow, change only where the viewport is looking. They are transient visual state keyed by the stream’s identity. Selecting an entry and asking to copy one are caller-owned intents and are only offered when the matching callbacks exist. GPUI has no pointer text-selection primitive, so this component does not claim one.

Structs§

LogEntry
One caller-owned log entry.
LogStream
A virtualized, read-only log presentation.

Enums§

LogStreamState
What is known about the stream as a whole.