LogTapHost

The device side of a log tap: a peer that offers its captured logs for extraction.

An app that wants its logs to be reachable from a test or CI process calls installLogTap once. From then on the device hosts a small session that another peer can join and pull the logs out of — handy on a phone or simulator where logs are otherwise hard to get at. Until installLogTap is called, nothing is opened and no session exists: the tap is entirely opt-in.

Under the surface the host rides a us.tractat.kuilt.quilter.Quilter over the woven Seam, replicating the device's log buffer (an Rga<LogRecord>) to whoever joins. Replication is idempotent and order-preserving by construction, so a puller that reconnects never sees a duplicate or a gap.

Close the returned host to stop offering logs and release the replicator.

Properties

Link copied to clipboard

This peer's own id within the session — useful for diagnostics and per-device artifact naming on a multi-device harness.

Functions

Link copied to clipboard
override fun close()
Link copied to clipboard
fun sync()

Offer any newly captured records for replication now, without waiting for the next LogTapConfig.syncInterval tick.