From 2411218b2f3f6b85f2e845506f4ccd1ad11f94d2 Mon Sep 17 00:00:00 2001 From: Matt Tevenan Date: Wed, 18 Nov 2015 16:03:00 -0800 Subject: [PATCH] Editorial updates. --- examples/custom_format.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/custom_format.js b/examples/custom_format.js index 89875bb..57e18c3 100644 --- a/examples/custom_format.js +++ b/examples/custom_format.js @@ -40,7 +40,7 @@ Logger.error = function(err, context) { /** * Override the default eventFormatter() function, * which takes a message and severity, returning - * any type - string or object are recommended. + * any type; string or object are recommended. * * The message parameter can be any type. It will * be whatever was passed to Logger.send(). @@ -50,6 +50,7 @@ Logger.error = function(err, context) { * of key=value pairs if message is an object, * otherwise the message value is as value for * the message key. + * * This string is prefixed with the event * severity in square brackets. */ @@ -68,7 +69,7 @@ Logger.eventFormatter = function(message, severity) { return event; }; -// Define the payload to send to Splunk's Event Collector +// Define the payload to send to HTTP Event Collector var payload = { // Message can be anything, it doesn't have to be an object message: { @@ -110,4 +111,4 @@ console.log("Sending payload", payload); Logger.send(payload, function(err, resp, body) { // If successful, body will be { text: 'Success', code: 0 } console.log("Response from Splunk", body); -}); \ No newline at end of file +});