一旦我使用Winston,我就会丢失所有WebStorm控制台日志 即:
winston.log('test') // this is never logged to the webstorm console
console.log('test') // this is logged to the webstorm console
有没有办法在WebStorm控制台中显示Winston日志?
答案 0 :(得分:1)
winston.log('test'); // doesn't works
但是
winston.log('<log level>','test'); // works
或者
wiston.<log level ie:error, warn, info, verbose, debug, silly>('test');
我的问题是,没有&#34; log&#34;等级,但有一个命令&#34; log&#34;期望一个日志级别......
答案 1 :(得分:0)