releases.shpreview

2.6.0

Sanity React App SDK v2.6.0: Introducing logging tooling

$npx -y @buildinternet/releases show rel_GvzLnTjCcv8HZ_9VqWZ5S

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.

Fetched April 11, 2026