Node.js Logging

前端 未结 9 1840
一个人的身影
一个人的身影 2021-01-29 17:28

Is there any library which will help me to handle logging in my Node.Js application? All I want to do is, I want to write all logs into a File and also I need an options like ro

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-29 17:47

    Observe that errorLogger is a wrapper around logger.trace. But the level of logger is ERROR so logger.trace will not log its message to logger's appenders.

    The fix is to change logger.trace to logger.error in the body of errorLogger.

提交回复
热议问题