Log levels
ThePortalLogLevel enum defines five levels. Each level includes all levels above it in severity.
Set the log level
Callportal.setLogLevel() after initializing your Portal instance. The change takes effect immediately across all SDK components.
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.
Log output
Logs are written to Android’s standard logging system and appear in Logcat. You can filter them in Android Studio’s Logcat window or viaadb logcat by searching for the PortalSDK tag: