MeshLogRepository
Repository interface for managing and retrieving logs from the database.
This component provides access to the application's message log, telemetry history, and debug records. It supports reactive queries for packets, telemetry data, and node-specific logs.
This interface is shared across platforms via Kotlin Multiplatform (KMP).
Functions
Deletes only local stats telemetry logs for nodeNum, preserving other telemetry logs.
Prunes the log database based on the configured retentionDays, which carries the MeshLogRetention sentinels: MeshLogRetention.KEEP_FOREVER deletes nothing and MeshLogRetention.ONE_HOUR keeps only the last hour.
Deletes the telemetry log for nodeNum that getTelemetryFrom emitted as telemetry.
Retrieves all MeshLogs in the database without any limit.
Retrieves the request logs other nodes sent on portNum, where want_response is true.
Returns the cached MyNodeInfo from the system logs.
Retrieves all outgoing request logs for a specific targetNodeNum and portNum.
Retrieves telemetry history for a specific node, automatically handling local node redirection.
Emits every MeshLog once, oldest first, then completes. The logs are read a page at a time rather than held in memory together.