【发布时间】:2012-04-20 05:07:32
【问题描述】:
我们想使用 Winston 来登录 Node.js。但是,我们无法弄清楚如何拥有两个日志文件:一个仅用于错误,另一个用于其他所有文件。
但是,以天真的方式这样做是行不通的:添加多个 winston.transports.File 传输会出错。
Others have run into this problem, with vague hints of a solution, but no real answer.
有什么想法吗?
【问题讨论】:
标签: node.js logging flatiron.js winston