Skip to main content

Logs

Introduction to Log Webhook Events

This section describes the webhook event that handles application logs in the Logs system. Logs are essential for monitoring and diagnosing application behavior. Log data provides critical insights into application operations and potential problems.

Events

Application logs will be sent via the /update/logs path of the registered webhook. There are three types of logs sent by the webhook: 'INFO', 'WARN' or 'ERROR'. These can range from a simple message to a more complex object.

update.log

Structure

This event represents the structure of an application log. It is crucial for understanding and responding to events within the application, ranging from general information (INFO) to alerts (WARN) and errors (ERROR).
{
"event": "update.log", // Event name
"instance": { // Instance details
"owner": "[email protected]", // Instance owner
"name": "codechat", // Instance name
"id": "d4a58666-9737-485d-988b-d18a43ce8c75" // Unique identifier of the instance
},
"logType": "ERROR", // Log type
"logValue": { // Log value
"location": "WebhookProcessor.standardShipping", // Log location
"response": { // Detailed log response
"message": "Request failed with status code 502", // Error message
"name": "AxiosError", // Error name
"stack": "AxiosError: Request failed with status code 502\n at settle ...", // Stack trace
"config": { // Log related configuration
// ...Detailed settings...
},
"code": "ERR_BAD_RESPONSE", // Error code
"status": 502 // HTTP status of the error
}
}
}