Log levels
ThePortalLogLevel enum defines five levels. Each level includes all levels above it in severity.
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.