Overview
Use SDK logs to inspect Lit Action requests and responses. Logging is disabled by default.Browser
Setwindow.LOG_LEVEL before the SDK bundle loads (or before your first @lit-protocol/* import). The logger is initialized at module load time, so setting it afterward will not take effect.
Node.js
SetLOG_LEVEL=debug (or info) before running the app:
HTTP Response Logging
SetDEBUG_HTTP=true to log raw HTTP responses and a generated curl command for each node request.
window before the SDK loads:
What You Can and Cannot See
- The SDK does not surface decrypted per-node payloads in browser logs.
executeJsreturnsresult.responseandresult.logs(aggregated console output from your Lit Action).- To inspect decrypted data, explicitly log or return it from the Lit Action (be careful with secrets).