ServerLogger.Dashboard.Component (ServerLogger v0.3.0)

Copy Markdown View Source

LiveComponent for the Server Logger Viewer. Provides filtering, sorting, search, pagination, inline row expansion, auto-refresh, and metrics display.

Summary

Functions

Formats a DateTime for use in datetime-local input fields (YYYY-MM-DDTHH:MM:SS).

Formats a log entry as plain text for clipboard copy.

Shows surrounding logs (±5s) around the given log entry, with all levels enabled.

Functions

format_bytes(bytes)

format_datetime(dt)

format_datetime_input(dt)

Formats a DateTime for use in datetime-local input fields (YYYY-MM-DDTHH:MM:SS).

format_last_flush(dt)

format_log_clipboard(log)

Formats a log entry as plain text for clipboard copy.

handle_event(event, params, socket)

Shows surrounding logs (±5s) around the given log entry, with all levels enabled.