writeStampedLogArtifact

fun writeStampedLogArtifact(stamped: List<StampedLogRecord>, sink: Sink)

Write stamped to sink as a stamped NDJSON artifact: one JSON StampedLogRecord per line, newline-terminated, in order. The stamped counterpart of writeLogArtifact — use it when the artifact will be merged across devices (see stampedLogArtifactLines).

The sink is flushed before returning; closing it remains the caller's responsibility.