Winston登录无法捕获错误,调试 [英] Logentries with Winston in not capturing ERROR, DEBUG
本文介绍了Winston登录无法捕获错误,调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在NodeJS应用程序中使用Winston 3.1.0,以及Logentries le_node 1.8.0.
I am using Winston 3.1.0 in my NodeJS app, together with Logentries le_node 1.8.0.
登录仅捕获INFO,DEBUG或ERROR或DEBUG.
Logentries is only capturing only INFO, DEBUG nor ERROR nor DEBUG.
我也在使用Console&文件传输,并且记录正确.
I am using also Console & File transports, and those are logged correctly.
任何知道为什么LE只捕获信息,调试吗?
Any idea why LE is only capturing info, debug ?
推荐答案
通过在构造函数中定义levels
来解决:
Solved by defining levels
in constructor:
这篇关于Winston登录无法捕获错误,调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文