new Logging()
Methods
disableMobileSDKLogging(successCallback, errorCallback)
Calling this method will stop SDK logging to a console.
Logging is disabled by default.
Parameters:
Name | Type | Description |
---|---|---|
successCallback |
function | Default Success call back function name |
errorCallback |
function | Default Error call back function name |
Returns:
The return value is captured in the 'successCallback' for a successful operation, and might return in 'errorCallback' for an incomplete/invalid operation. Returns the following values in the corresponding functions
successCallback - KMC_SUCCESS if logging started successfully.
errorCallback - error message would contain the error description. Possible error objects are KmcRuntimeException,Exception.
enableMobileSDKLogging(successCallback, errorCallback)
Calling this method will start SDK logging to a console.
Logging is disabled by default.
Parameters:
Name | Type | Description |
---|---|---|
successCallback |
function | Default Success call back function name |
errorCallback |
function | Default Error call back function name |
Returns:
The return value is captured in the 'successCallback' for a successful operation, and might return in 'errorCallback' for an incomplete/invalid operation. Returns the following values in the corresponding functions
successCallback - KMC_SUCCESS if logging started successfully.
errorCallback - error message would contain the error description. Possible error objects are KmcRuntimeException,Exception.
Example
var Logging = kfxCordova.kfxUtilities.createLogging();
Logging.enableMobileSDKLogging(function(enableLoggingSuccess){
alert(JSON.stringify(enableLoggingSuccess));
},function(enableLoggingError){
alert(JSON.stringify(enableLoggingError));
});