commit
4d484ad752
@ -1,9 +1,10 @@
|
|||||||
var layouts = require('../layouts');
|
var layouts = require('../layouts'),
|
||||||
|
consoleLog = console.log;
|
||||||
|
|
||||||
function consoleAppender (layout) {
|
function consoleAppender (layout) {
|
||||||
layout = layout || layouts.colouredLayout;
|
layout = layout || layouts.colouredLayout;
|
||||||
return function(loggingEvent) {
|
return function(loggingEvent) {
|
||||||
console._preLog4js_log(layout(loggingEvent));
|
consoleLog(layout(loggingEvent));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user