fix restoreConsole by making console appender not depend on _preLog4js_log
This commit is contained in:
parent
05c4c59c20
commit
a5b09b3ead
@ -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));
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user