---
schema_version: "1"
id: 36e3945000bf516f698a1379e70f6f1b8ccfba2417a9ed4f8264773cef13fb1d
title: logSdkState
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud-mobilepush/engagement_sdk/references/cordova/logSdkState.md
canonical_url: https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/logSdkState.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7697dd297daa25554880fda698cad9da6a980ed105c61deceb58c683681628b8
products:
  - Salesforce Engagement SDK
---
# logSdkState

Instructs the native SDK to log the SDK state to the native logging system (Logcat for Android and Xcode or Console for iOS). If you contact Salesforce Support for help, you must provide a copy of the SDK state logs.

**note:** This method is available in MobilePush SDK version 6.3.1 and later.

## Syntax

`MCCordovaPlugin.logSdkState([successCallback], [errorCallback])`

## Kind

Static method of `MCCordovaPlugin`.

## Parameters

| Parameter         | Type       | Description |
| ----------------- | ---------- | ----------- |
| `successCallback` | `function` |             |
| `errorCallback`   | `function` |             |
