Adding logging & metric recording configuration via settings

This commit is contained in:
hbeeken
2015-01-29 13:48:50 +00:00
committed by Nick O'Leary
parent a22f819f40
commit b052324d36
9 changed files with 75 additions and 13 deletions

View File

@@ -70,11 +70,11 @@ describe('debug node', function() {
try {
helper.log().called.should.be.true;
var logEvents = helper.log().args.filter(function(evt) {
return evt[0].level == "log";
return evt[0].level == "info";
});
logEvents.should.have.length(1);
var tstmp = logEvents[0][0].timestamp;
logEvents[0][0].should.eql({level:'log',id:'n1',type:'debug',msg:'test', timestamp:tstmp});
logEvents[0][0].should.eql({level:'info',id:'n1',type:'debug',msg:'test', timestamp:tstmp});
done();
} catch(err) {