---
schema_version: "1"
id: b25d8a9c98ca682e9346f410be5444a975f13f1799d041529d71c530d3e6ca48
title: enableLogging
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud-mobilepush/engagement_sdk/references/cordova/enableLogging.md
canonical_url: https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/enableLogging.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1c43c2d53024b9aee02d0bcde565ea2d80bea60bcaf487aea1d237f1c5ba28fc
products:
  - Salesforce Engagement SDK
---
# enableLogging

Enables verbose logging within the native MobilePush SDK.

## Syntax

`MCCordovaPlugin.enableLogging([successCallback], [errorCallback])`

## Kind

Static method of `MCCordovaPlugin`.

## Parameters

| Parameter         | Type       | Description |
| ----------------- | ---------- | ----------- |
| `successCallback` | `function` |             |
| `errorCallback`   | `function` |             |

## See Also

- [Troubleshoot Issues in Android Apps](/docs/marketing/mobilepush/guide/troubleshooting-android.html#check-the-sdks-log-output)
- _SDK Reference for iOS_: [Logger Methods](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/ios-sdk-v11/sfmc-sdk/classes/sfmcsdk.md#logger-methods)
