Adding timestamps to all console messages

前端 未结 12 1097
鱼传尺愫
鱼传尺愫 2021-01-31 06:51

I have a complete, deployed, Express-based project, with many console.log() and console.error() statements throughout. The project runs using forever, directing the st

12条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-31 07:12

    app.use(morgan('[:date[web]] :method :url :status :res[content-length] - :remote-addr - :response-time ms'))
    

提交回复
热议问题