set Log Level
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.NONE | Nothing (default) |
| PortalLogLevel.ERROR | Failures: failed transactions, network errors, binary crashes |
| PortalLogLevel.WARN | Warnings: deprecated usage, retry attempts, slow responses |
| PortalLogLevel.INFO | Milestones: signing started, share generated, connection opened |
| PortalLogLevel.DEBUG | Everything: request/response payloads, timing, state transitions |
Example:
portal.setLogLevel(PortalLogLevel.DEBUG) // see all SDK logs
portal.setLogLevel(PortalLogLevel.NONE) // silence the SDKContent copied to clipboard
Parameters
level
The desired PortalLogLevel.