@@ -40,7 +40,7 @@ Logger.error = function(err, context) {
4040/**
4141 * Override the default eventFormatter() function,
4242 * which takes a message and severity, returning
43- * any type - string or object are recommended.
43+ * any type; string or object are recommended.
4444 *
4545 * The message parameter can be any type. It will
4646 * be whatever was passed to Logger.send().
@@ -50,6 +50,7 @@ Logger.error = function(err, context) {
5050 * of key=value pairs if message is an object,
5151 * otherwise the message value is as value for
5252 * the message key.
53+ *
5354 * This string is prefixed with the event
5455 * severity in square brackets.
5556 */
@@ -68,7 +69,7 @@ Logger.eventFormatter = function(message, severity) {
6869 return event ;
6970} ;
7071
71- // Define the payload to send to Splunk's Event Collector
72+ // Define the payload to send to HTTP Event Collector
7273var payload = {
7374 // Message can be anything, it doesn't have to be an object
7475 message : {
@@ -110,4 +111,4 @@ console.log("Sending payload", payload);
110111Logger . send ( payload , function ( err , resp , body ) {
111112 // If successful, body will be { text: 'Success', code: 0 }
112113 console . log ( "Response from Splunk" , body ) ;
113- } ) ;
114+ } ) ;
0 commit comments