Introducing logging tooling
Published: January 22, 2026
v2.6.0
Sanity React App SDK
This release introduces configurable logging for the Sanity SDK, giving you visibility into SDK operations during development and troubleshooting.
Logging configuration
You can now configure logging to control what messages appear and from which parts of the SDK. This is useful for debugging authentication flows, document operations, and other SDK behavior.
import {configureLogging} from '@sanity/sdk'
configureLogging({
level: 'info',
namespaces: ['auth', 'document']
})The logger supports five levels of verbosity:
error: Critical failures that prevent operation.warn: Issues that may cause problems but don't stop execution.info: High-level informational messages.debug: Detailed debugging information.trace: Very detailed tracing, including internal stream operations.
Set namespaces to control which functional areas produce logs. Use ['*'] to see everything.