changed logger to not use events. everything is broken

This commit is contained in:
Gareth Jones
2013-08-02 11:36:05 +10:00
parent d25e1abd48
commit 3b55aefe6f
4 changed files with 59 additions and 59 deletions
+3 -2
View File
@@ -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);