log4js 应用到cluster问题
发布于 1年前 作者 zhs077 1053 次浏览

我在express里面使用cluster模块,可以正常使用,加入log4js后抛出异常如下 events.js:72 throw er; // Unhandled ‘error’ event ^ Error: write after end at writeAfterEnd (_stream_writable.js:130:12) at WriteStream.Writable.write (_stream_writable.js:178:5) at writeTheChunk (E:\code\VideoDemo\node_modules\log4js\lib\streams\BaseRollingFileStream.js:51:20) at E:\code\VideoDemo\node_modules\log4js\node_modules\async\lib\async.js:199:13 at E:\code\VideoDemo\node_modules\log4js\node_modules\async\lib\async.js:120:21 at E:\code\VideoDemo\node_modules\log4js\node_modules\async\lib\async.js:196:17 at E:\code\VideoDemo\node_modules\log4js\node_modules\async\lib\async.js:499:34 at E:\code\VideoDemo\node_modules\log4js\node_modules\async\lib\async.js:120:21 at Object.oncomplete (fs.js:107:15) worker 16204 died8

回到顶部