Logentries with Winston in not capturing ERROR, DEBUG

橙三吉。 提交于 2019-12-11 19:08:18

问题


I am using Winston 3.1.0 in my NodeJS app, together with Logentries le_node 1.8.0.

Logentries is only capturing only INFO, DEBUG nor ERROR nor DEBUG.

I am using also Console & File transports, and those are logged correctly.

Any idea why LE is only capturing info, debug ?


回答1:


Solved by defining levels in constructor:



来源:https://stackoverflow.com/questions/54945706/logentries-with-winston-in-not-capturing-error-debug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!