Fundamentals
Read an AI-produced log one line at a time
Keep events separate, assign usable timestamps, and preserve a link from each line to its source.
Treat the line as a record
JSON Lines represents a separate JSON value on each line, which works for tools that process logs in sequence. Decide whether each result line describes a retrieved event, a workflow step, or a judgment. Mixing those types without a label makes it hard to distinguish evidence from remarks. Give each type a clearly named field or use separate files if they serve different readers. 1
Keep timestamps and source values intact
Use the timestamp format required by the importer and preserve any offset that matters. RFC 3339 describes a timestamp convention for Internet use. For a tool-derived event, keep the identifier returned by the tool and record any missing field. Function-calling documentation explains how applications supply results back to a model. The model’s interpretation is a separate step from observing the raw returned event. 2 3
Open the log with the reader that will consume it
Try a file with one event containing quoted text and one that has no optional note. Confirm that each line parses. Compare the number of log records with the expected count, and check that the assistant’s explanation appears somewhere it will not break the log reader. A concise final summary can point to relevant event IDs so a person can inspect them.
Test an event with a text field containing a newline so the consumer still sees one event record on one physical line.