log4js 应用到cluster问题
发布于 10 年前 作者 zhs077 6337 次浏览 最后一次编辑是 8 年前

我在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

1 回复

hello,兄弟,这个问题解决了没有啊?我也遇到这个问题了

回到顶部