getLogger

open fun getLogger(componentName: String, context: Context): SalesforceLogger

Returns the Salesforce logger instance associated with the named component. The logger will be created if needed and without any additional Salesforce log receiver.

Return

Either a new or existing Salesforce logger for the named component

Parameters

componentName

The component name

context

The Android context


open fun getLogger(componentName: String, context: Context, salesforceLogReceiver: SalesforceLogReceiver): SalesforceLogger

Returns the Salesforce logger instance associated with the named component. The logger will be created if needed and with the specified Salesforce log receiver.

Return

Either a new or existing Salesforce logger for the named component

Parameters

componentName

The component name

context

The Android context

salesforceLogReceiver

The Salesforce log receiver to receive all logs issued by the Salesforce logger