Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Download Connector Logs

Partners can log messages from their connector and then download these logged messages as a text file.

To enable logging, set debugEnabled to true in the CapabilitiesResult object that is returned as a result of the getCapabilities() method in the connector interface.

When debugEnabled is set to true, Settings in Omni-Channel has a new link titled “Download agent debug information” under Debugging. Click this link to download a text file that contains the data logged.

To log a message in the connector:

import { log, Constants } from 'scv-connector-base';

Example for logging an error message:

log({message: "Log this error"}, Constants.LOG_LEVEL.ERROR);

Example for logging an info message:

log({anyobject: 1}, Constants.LOG_LEVEL.INFO);