Add a warning message to the log. This function logs messages with 'WARN' log level.
<static> warn( message, [tag], [successCallback], [errorCallback] )
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 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.) |
sap.Logger.warn("warn message", "WARN_TAG");