This commit is contained in:
Christiaan Westerbeek 2014-01-10 21:59:39 +01:00
parent eb51aa99be
commit 770f2da627

View File

@ -3,7 +3,6 @@ var layouts = require("../layouts")
, loggly = require("loggly")
, os = require('os');
/**
* Loggly Appender. Sends logging events to Loggly using node-loggly
*
@ -20,18 +19,9 @@ function logglyAppender(config, layout) {
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) {