structured_log_fluent library

Classes

FluentLogViewer
The Fluent UI (WinUI-style) log viewer for structured_log, as a plain embeddable widget rather than a full screen — drop it into a Flyout, a side panel, a tab, or anywhere else that already provides its own page chrome. FluentLogViewerPage wraps this in a ScaffoldPage (with a title and, when pushed, a back button) for the full-screen case; use FluentLogViewer directly when that page chrome isn't wanted.
FluentLogViewerPage
A ready-to-use Fluent UI (WinUI-style) full-screen log viewer for structured_log, built on a LogViewerController.
LogCategoryComboBox
A category-filter selector for FluentLogViewerPage, mirroring its existing level filter. Options are derived dynamically from the distinct category values currently present in controller's LogViewerController.buffer — the package has no way to know domain category names (e.g. application/protocol are consumer-specific), so raw category strings are used as display labels, plus allLabel for "no filter" (categoryFilter == null).
LogEntryDetailPane
The detail side of FluentLogViewerPage's master-detail split view: shows the selected entry's full context (everything except event, level, and timestamp, already in the header) as key/value pairs, plus a "Copy" action that copies that context to the clipboard as plain text.
LogEntryTile
A single row in FluentLogViewerPage's master list: a level badge, the entry's event text, a formatted timestamp, and — if the entry has a category context key — a category tag underneath.
LogViewerEmptyState
The state FluentLogViewerPage shows in place of the list when there is nothing to display, distinguishing two cases:

Functions

formatEntryTime(Object? raw) String
Formats a log entry's timestamp value (an ISO-8601 string, as produced by structured_log) as a local HH:mm:ss time. Returns the raw value's string form unchanged if it isn't a parseable timestamp.
logLevelAbbreviation(LogLevel level) String
A short, upper-case abbreviation for level (TRC, DBG, INF, WRN, ERR, CRT), used in the compact level badge next to each entry — matching the density expected of a desktop list row.
logLevelColor(LogLevel level, Brightness brightness) Color
The single source of truth for LogLevel indicator colors across every design-system skin built on this package (structured_log_material, structured_log_fluent, structured_log_cupertino, ...) — every place that needs a level color calls this rather than hard-coding its own copy of the palette, so the mapping can't drift between skins.