changed logger to not use events. everything is broken
This commit is contained in:
@@ -54,7 +54,7 @@ vows.describe('log4js').addBatch({
|
||||
'log events' : {
|
||||
topic: function(logger) {
|
||||
var events = [];
|
||||
logger.addListener("log", function (logEvent) { events.push(logEvent); });
|
||||
log4js.addAppender(function (logEvent) { events.push(logEvent); }, "tests");
|
||||
logger.debug("Debug event");
|
||||
logger.trace("Trace event 1");
|
||||
logger.trace("Trace event 2");
|
||||
@@ -83,7 +83,7 @@ vows.describe('log4js').addBatch({
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
/*
|
||||
'invalid configuration': {
|
||||
'should throw an exception': function() {
|
||||
assert.throws(function() {
|
||||
@@ -509,4 +509,5 @@ vows.describe('log4js').addBatch({
|
||||
assert.ok(logger.error);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}).export(module);
|
||||
|
||||
Reference in New Issue
Block a user