Skip to content

Instantly share code, notes, and snippets.

// Set up the Loggly server address we will send to
const LOGGLY_URL = "https://logs-01.loggly.com/inputs/TOKEN/tag/imp/";
function log(logMessage)
{
// Prepare the request with a JSON payload
local body = http.jsonencode({ message = logMessage });
local extraHeaders = {};