getLoggingConfiguration

The CapacitorJS SDK provides a logging configuration API for debug or reporting purposes. The API can be configured to log any combination of Components (features or technical concepts such as Networking or Databases) to log levels (Verbose, Debug, etc).

Get the current logging configuration by calling the following:
getLoggingConfiguration(): Promise<MXOResult<MXOLoggingConfiguration>>

Example of usage:

MedalliaMXO.getLoggingConfiguration()
	.then(mxoResult => {
		if (mxoResult.value && mxoResult.value.apiName) {
			// error case
			console.error(mxoResult.value)
		} else {
			// success case
			console.log("Configuration: ", mxoResult.value)
		}
	})
	.catch(error => {
                console.error(error)
	})
try {
	const {value} = await MedalliaMXO.getLoggingConfiguration()
	if (value && value.apiName) {
            	// error case
            	console.error(value)
        } else {
            	// success case
            	console.log("Configuration: ", value)
        }
} catch (error) {
        console.error(error)
}