Use the SDK to create and save diagnostic logs

Note: This article applies to Genesys Cloud for Salesforce.

You can use our SDK in the managed package to generate diagnostic logs in Salesforce. The SDK uses the Salesforce Apex programming language. 

Note: This advanced customization article is intended for developers who are familiar with Salesforce.

Access our SDK through the Logger class under the purecloud.SDK.Logger namespace.

Logger class

Contains methods that allow you to create and save diagnostic logs through Genesys Cloud for Salesforce.

Note: Due to Salesforce limitations, the integration stores a created log in memory until the end of a transaction with the createPendingLog method. At the end of a transaction, the integration saves these logs as log objects to your Salesforce organization with the savePendingLogs method.

Namespace

purecloud.SDK.Logger

Usage

Use these methods to create pending log requests and then save the logs at the end of a transaction through Genesys Cloud for Salesforce. 

Logger methods

The following methods are available for the Logger class.

For more information, see .

For more information about the integration, see .