tail

fun tail(): Flow<LogRecord>

Tail the device's logs live: emits each LogRecord as it replicates in, in order and exactly once. The flow replays everything already known on collection, then continues with newly captured records until the collector is cancelled.

Samples

val loom = InMemoryLoom()
// Join a device that is already hosting a tap and stream its logs live: each
// record is emitted once, in order, as it is captured. The flow replays
// everything already known on collection, then continues with new lines.
val client = LogTapClient(loom.join(InMemoryTag("tailer")), seamScope)
return client.tail()