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.
Retrieves all MeshLogs in the database in the order they were received.
Retrieves all MeshLogs in the database without any limit.
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.