LogWarning
Logs an App Warning message to the error log.
Service | Operation |
---|---|
log | LOG_WARNING |
Method Parameters
Parameter | Description |
---|---|
errorMessage | The error message. |
context | JSON formatted string that will display via the context icon click. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var errorMessage = "Test warning message";
var context = "Test warning context";
var logProxy = bridge.getLogServiceProxy();
var postResult = logProxy.logWarning(errorMessage, context);
if (postResult.status == 200) {
// Success!
}
{
"service": "log",
"operation": "LOG_WARNING",
"data": {
"errorMessage": "Test warning message",
"jsonContext": {
"msg": "Test error context"
}
}
}
JSON Response
{
"status": 200,
"data": null
}