info( message, [tag], [successCallback], [errorCallback] ) method

Add an info message to the log. This function logs messages with 'INFO' log level.

Syntax

<static> info( message, [tag], [successCallback], [errorCallback] )

Parameters

Name Type Argument Description
message String   log message to be logged
tag String (optional) Tag can indicate what this message is for.(ex. SMP_LOGGER, SMP_AUTHPROXY) It can be appended to messages at front.
successCallback function (optional) success callback method upon success state.When a debug message is successfully logged, it is fired. No object will be passed to success callback.
errorCallback function (optional) error callback method upon error state. For this method, since the Kapsel Logger native code always calls the success callback after executing the API of the oData logger library, it is very unusual to fire an error callback.(If Cordova caused a system exception, the error callback could be fired by Cordova.)

Example

sap.Logger.info("info message", "INFO_TAG");

Source

logger.js, line 100.