setLogLevel

Changes the log verbosity of the Portal SDK at runtime without reinitializing the Portal instance.

The setting takes effect immediately and applies globally to every SDK component that uses PortalLogger. Log levels are hierarchical -- each level includes all levels above it:

PortalLogLevel.NONENothing (default)
PortalLogLevel.ERRORFailures: failed transactions, network errors, binary crashes
PortalLogLevel.WARNWarnings: deprecated usage, retry attempts, slow responses
PortalLogLevel.INFOMilestones: signing started, share generated, connection opened
PortalLogLevel.DEBUGEverything: request/response payloads, timing, state transitions

Example:

portal.setLogLevel(PortalLogLevel.DEBUG)   // see all SDK logs
portal.setLogLevel(PortalLogLevel.NONE) // silence the SDK

Parameters

level

The desired PortalLogLevel.

See also