logArtifactLines
The NDJSON lines for records: each element is one LogRecord serialized to a single line of JSON, in the given order. No trailing newline is added — the sink-writing writeLogArtifact wrapper appends the line separators.
This is the pure, sink-free core: hand it to any writer, fold it into a string, or assert on it directly in a test.