Output and reference

Logging

Set NACE_LOG_LEVEL to send the SDK's log lines to stderr, each prefixed nace_sdk LEVEL:

LevelWhat you see
debugEvery API call's request and response, with headers and JSON body. The API key, upload tokens and a PDF password are masked; file bytes show only their size.
infoOne line per API call's response with its method, URL, status, time and request_id, plus a line per retry and per connection error.
warn, warning, errorOnly problems, such as an answer of a type the SDK doesn't know.
offNothing.

File downloads (nace file, --link, and the full content of a large parse) and event streams (nace events, --watch) aren't logged at either level, except a connection error at info.

NACE_LOG_LEVEL=debug nace models