Cleanup
This commit is contained in:
parent
eb51aa99be
commit
770f2da627
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user