Output and reference
Logging
Set NACE_LOG_LEVEL to send the SDK's log lines to stderr, each prefixed nace_sdk LEVEL:
| Level | What you see |
|---|---|
debug | Every 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. |
info | One 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, error | Only problems, such as an answer of a type the SDK doesn't know. |
off | Nothing. |
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