Logging

Cordova Inform SDK Wrapper


Remote Logging

Remote logging sends SDK logs to the Validic API for remote diagnostics. All Validic SDK logs are automatically and securely uploaded to Validic to aid in support requests. Only the SDK's own internal logs are collected — no client application logs are captured or uploaded. No action is required to enable this. This setting is persisted across app launches and user sessions. Remote logging can be disabled if needed:

await ValidicMobile.Logger.enableRemoteLogging();
await ValidicMobile.Logger.disableRemoteLogging();

Local Logging

Local logging outputs SDK logs to the javascript console. Log messages include the module name and version for easier debugging (e.g., [@validic-mobile/cordova-inform-core/2.2.0][Session] ...).

await ValidicMobile.Logger.enableLocalLogging();
await ValidicMobile.Logger.disableLocalLogging();