This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 = {}; |