Log levels
ThePortalLogLevel enum defines five levels. Each level includes all levels above it in severity.
| Level | What is logged |
|---|---|
PortalLogLevel.none | Nothing. This is the default. |
PortalLogLevel.error | Failures only — failed transactions, network errors, binary crashes. |
PortalLogLevel.warn | Unexpected but non-fatal conditions — deprecated usage, retries, slow responses. |
PortalLogLevel.info | Normal operational milestones — signing started, share generated, connection opened. |
PortalLogLevel.debug | Everything, including internals — request/response payloads, timing, state transitions. |
Set the log level
At initialization
PasslogLevel when initializing your Portal instance.
At runtime
Callportal.setLogLevel() at any time. The change takes effect immediately across all SDK components — no reinitialization needed.
Set the log level before calling any other SDK methods to capture all output from the start.
Recommended levels by environment
- Development:
PortalLogLevel.debug— see all SDK activity while building your integration. - QA / staging:
PortalLogLevel.infoorPortalLogLevel.warn— surface operational milestones and anomalies without noise. - Production:
PortalLogLevel.none(default) — no logs emitted. UsePortalLogLevel.errorif you want to forward failures to a crash reporter.