fix restoreConsole by making console appender not depend on _preLog4js_log

This commit is contained in:
Vincent Côté-Roy 2012-01-05 08:47:15 -05:00
parent 05c4c59c20
commit a5b09b3ead

View File

@ -1,9 +1,10 @@
var layouts = require('../layouts');
var layouts = require('../layouts'),
consoleLog = console.log;
function consoleAppender (layout) {
layout = layout || layouts.colouredLayout;
return function(loggingEvent) {
console._preLog4js_log(layout(loggingEvent));
consoleLog(layout(loggingEvent));
};
}