diff --git a/lib/appenders/loggly.js b/lib/appenders/loggly.js index 7f7df8f..2b9efd4 100644 --- a/lib/appenders/loggly.js +++ b/lib/appenders/loggly.js @@ -3,7 +3,6 @@ var layouts = require("../layouts") , loggly = require("loggly") , os = require('os'); - /** * Loggly Appender. Sends logging events to Loggly using node-loggly * @@ -19,19 +18,10 @@ function logglyAppender(config, layout) { layout = layout || layouts.basicLayout; var client = loggly.createClient(config); - return function(loggingEvent) { - console.log('attempts', loggingEvent, layout(loggingEvent), config.tags); - client.log(layout(loggingEvent), config.tags, function(err, result){ - if (err) { - console.log('Loggly: '+ err.message); - } else { - console.log('Loggly: '+ JSON.stringify(result)); - } - }); + client.log(layout(loggingEvent), config.tags); }; - } function configure(config) {