logSdkState

Logs the current state of the SDK for debugging purposes.

Syntax 

1Future<void> logSdkState()

Returns 

  • Future<void> - Completes when the SDK state has been logged.

Example 

1try {
2  await SfmcSdk.logSdkState();
3  print('SDK state logged to console');
4} catch (e) {
5  print('Failed to log SDK state: $e');
6}

Notes 

  • This method is useful for debugging and troubleshooting SDK issues.
  • The logged information includes device registration status, contact key, attributes, and tags.

Related Methods