CNode

log4js 应用到cluster问题

Zzhs077发布于12 年前最后回复10 年前1 回复7732 浏览0 收藏

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

H
huguiqi#1·10 年前

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

参与回复
登录后即可参与回复。登录