Logging

Log Handler

You may specify a log handler to receive JSON documents describing errors and unusual conditions with your network. Here's an example notifying you of an error with one of your handlers:

{
  "message_type": "LOG_EVENT",
  "account_id": "2AKvnTJlm4mtAORqiVobHXBV0Fb",
  "network_id": "2AKwJ5REoRZj1h3UsyPpgwI5EyK",
  "device_id": "0d7ddbbb-3c08-4789-bfef-04a6491a1617",
  "level": "ERROR",
  "function": "DEVICE_REQUEST",
  "code": "HANDLER_ERROR",
  "message": "\thttps://webhook.site/e600c0f0-5dc1-489b-8242-a3fa68b80c36: HTTP error: 410 Client Error: Gone for url: https://webhook.site/e600c0f0-5dc1-489b-8242-a3fa68b80c36"
}

Last updated