You can use our
Webhook API to log errors and alerts to ErrLog. This gives you complete customization over the data you send to us. All it involves is crafting a simple JSON package and making a simple web request.
If this isn't already installed on your system you can install it with one of the following commands.
Note: When you create the request you're specifying the URL of our relay host's logging API. For more information on the API, including all the required and optional fields you can use, see
Webhook API
From there you can create the JSON string that will be sent to the API.
That's all the hard work done. Now you just need to send us the data.
You can do any error checking on the response. In normal circumstances the API will respond with "OK".
Below is a complete code listing used in the examples above.