Download Connector Logs
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);