Function Signature
Description
Sets the log verbosity for the Portal SDK. The change takes effect immediately across all SDK components, including the native iOS and Android layers. Can be called before or afterinitialize(). When called before initialization, only the Dart-side logger is configured. When called after, the log level is also propagated to the native SDK.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
level | PortalLogLevel | Yes | The desired log verbosity level |
PortalLogLevel values
| Value | Description |
|---|---|
PortalLogLevel.none | No output. This is the default. |
PortalLogLevel.error | Failures only — failed transactions, network errors, binary crashes. |
PortalLogLevel.warn | Non-fatal unexpected conditions — deprecated usage, retries, slow responses. |
PortalLogLevel.info | Operational milestones — signing started, share generated, connection opened. |
PortalLogLevel.debug | Full internals — request/response payloads, timing, state transitions. |
Returns
void
Example
Errors
| Code | Description |
|---|---|
SET_LOG_LEVEL_ERROR | Failed to set the native log level |