var log4js = require('log4js');
log4js.loadAppender('file');
log4js.addAppender(log4js.appenders.file('logs/win.log'), 'win');
var logger = log4js.getLogger('win');
log4js.replaceConsole()
为什么logger.warn都要调试器里显示出来后很久,才写到文件里去?
var log4js = require('log4js');
log4js.loadAppender('file');
log4js.addAppender(log4js.appenders.file('logs/win.log'), 'win');
var logger = log4js.getLogger('win');
log4js.replaceConsole()
为什么logger.warn都要调试器里显示出来后很久,才写到文件里去?