LogErrorJson
Logs an App Error message to the error log.
Service | Operation |
---|---|
log | LOG_ERROR |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var errorMessage = "Test error message";
var context = { "example": "json" };
var logProxy = bridge.getLogServiceProxy();
logProxy.logErrorJson(errorMessage, context);
var errorMessage = "Test error message";
var context = { "example": "json" };
var logProxy = bridge.getLogServiceProxy();
logProxy.logErrorJson(errorMessage, context);
JSON Response
{
"status": 200,
"data": null
}
Method Parameters
Parameter | Description |
---|---|
errorMessage | The error message. |
context | Additional JSON-format information to include with the message. |