Action Log Builder
DSL for building a stage action log. Obtained via StageScope.logAction.
Primitive overloads (put for Int, Long, Double, Boolean) emit JSON primitives directly.
put for String emits a JSON string; any truncation is applied globally in build.
Generic put with a
@Serializabletype encodes the value as a proper JSON element (array, object, …) using the json instance provided to StageScope.logAction — never wrapped as a string.
After all put calls, build applies ActionLogTruncation recursively to the entire JSON tree, so strings nested inside serialized objects or arrays are truncated by the same rule.
Properties
The accumulated log entries, keyed by name; mutated by the put calls.
Truncation applied to all string values when build is called.
Functions
Assembles the accumulated properties into a JsonObject and applies truncation recursively to every string in the tree.
Records value under key as a JSON string (subject to truncation in build).