LogDebugJson
Use this call to log messages to the API Explorer or Cloud Code Editor's log display only. It does not write to the persistant error logs. This method does nothing when calls from a cloud code script in normal execution circumstances.
Method Parameters
Parameter | Description |
---|---|
errorMessage | The error message. |
context | Additional JSON-format information to include with the message. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- 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
// Cloud Code only. To view example, switch to the Cloud Code tab
var errorMessage = "Test debug message with JSON context";
var context = { "example": "json" };
bridge.logDebugJson(errorMessage, context);
var errorMessage = "Test debug message with JSON context";
var context = { "example": "json" };
bridge.logDebugJson(errorMessage, context);
JSON Response
{
"status": 200,
"data": null
}