Multiple log files with Winston?

后端 未结 5 1473
故里飘歌
故里飘歌 2020-12-14 09:36

We\'d like to use Winston for our logging in Node.js. But, we can\'t figure out how to have two log files: one for just errors, and one for everything else.

Doing th

5条回答
  •  离开以前
    2020-12-14 10:03

    I just sent a pull request that allows using multiple File transports in one logger. https://github.com/flatiron/winston/pull/149

    It is already merged into flatiron/winston.

    You can also use my forked repo: https://github.com/pdobrev/winston

提交回复
热议问题