Package-level declarations

Types

Link copied to clipboard
data class LogEntry(val level: LogLevel, val tag: String, val message: String, val timestampEpochMs: Long, val stackTrace: String? = null)

A single redacted log line, ready to become a timeline event.

Link copied to clipboard

Mirrors android.util.Log priorities so a host can map its own logger onto them directly.

Link copied to clipboard
class LogRecorder(redaction: RedactionEngine, sink: LogSink, enabled: Boolean = true, maxMessageChars: Int = DEFAULT_MAX_MESSAGE_CHARS, maxStackTraceChars: Int = DEFAULT_MAX_STACK_TRACE_CHARS, nowEpochMs: () -> Long = System::currentTimeMillis)

Captures host log lines for the timeline.

Link copied to clipboard
fun interface LogSink

Where recorded entries go. The platform facade supplies an implementation that turns each entry into a timeline event; this module deliberately knows nothing about timelines or storage.