the standard library
nika:log
Emit a human-readable diagnostic log line to the run stream (best-effort · never fails). One of 28 builtins in the closed nika: namespace: control flow and run-stream primitives.
- corefamily6 tools
- 3argsdeclared contract
- 1requiredcheck teaches a miss
- craftedusage filecheck-green below
the contract
3 args · 1 requiredA missing required arg is a nika check finding before anything runs; the vocabulary below comes from the binary itself (nika catalog --tools --json), not from prose.
- level
stringdebug | info | warn | error (default info)- message*
stringthe log message- data
- optional structured context (any JSON)
in a real file
a complete workflownika: v1workflow: id: narrate-the-run description: "a human-readable line in the run stream — best-effort, never fails"tasks: narrate: invoke: tool: "nika:log" args: level: info message: "starting the nightly export" data: { records: 1204 }a complete file, nika check green; the drift gate re-validates this copy against the schema on every test run. open it in the playground →
cross-references
ships in skeletons
no skeleton ships it; the crafted file above is the reference.
the check gates
from the blog
the core family
6 toolscontrol flow and run-stream primitives.
Machines read the same vocabulary at /tools/catalog.json; the contract lives in spec 06 · stdlib. Install and ask the binary itself: nika catalog --tools. Read the spec →