LogsService

interface LogsService

Fetches monitor logs from a connected device.

Functions

Link copied to clipboard
abstract suspend fun deleteMonitorLogs(connection: MockzillaConnectionConfig): Result<Unit>

Deletes all buffered log entries on the device at connection and clears disk-cached body files.

Link copied to clipboard
abstract suspend fun fetchFullBodyLogDetail(connection: MockzillaConnectionConfig, logId: String): Result<LogEvent>

Fetches the complete log entry for logId directly from the device's disk cache, including the full (un-truncated) request and response bodies.

Link copied to clipboard

Fetches all buffered monitor logs from the device at connection and clears the buffer. Subsequent calls will not return the same log entries.

Link copied to clipboard
abstract suspend fun fetchMonitorLogsSince(connection: MockzillaConnectionConfig, since: Long?, clientSessionStart: Long): Result<MonitorLogsResponse>

Non-destructively polls log entries since the given timestamp. Safe to call repeatedly without losing entries.