Logs the current state of the SDK for debugging purposes.
Syntax
Future<void> logSdkState()
Returns
Future<void>- Completes when the SDK state has been logged.
Example
try {
await SfmcSdk.logSdkState();
print('SDK state logged to console');
} catch (e) {
print('Failed to log SDK state: $e');
}
Notes
- This method is useful for debugging and troubleshooting SDK issues.
- The logged information includes device registration status, contact key, attributes, and tags.