Merge pull request #53 from vincentcr/master

make restoreConsole work
This commit is contained in:
Gareth Jones 2012-01-11 14:44:16 -08:00
commit 4d484ad752

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));
};
}