SalesforceLogger
A simple logger that allows components to log statements of different log levels. This class also provides the ability to break down logs at the component level and set different log levels for different components. The available options for log output are console and file.
Author
bhariharan
Functions
Link copied to clipboard
Disables file logging.
Link copied to clipboard
Enables file logging.
Link copied to clipboard
Wipes all components currently being logged.
Link copied to clipboard
Returns the set of components that have loggers associated with them.
Link copied to clipboard
open fun getLogger(componentName: String, context: Context, salesforceLogReceiver: SalesforceLogReceiver): SalesforceLogger
Returns the Salesforce logger instance associated with the named component.
Link copied to clipboard
Returns if file logging is enabled or not.
Link copied to clipboard
Logs a log line of the specified level.
Link copied to clipboard
Resets the stored logger prefs.
Link copied to clipboard
Sets the factory for Salesforce log receivers.