how to show all console.log from node.js in heroku?

前端 未结 4 606
感情败类
感情败类 2021-02-01 13:09

I have deployed a node.js application to node.js but not able to see the complete console.log statements from my app. I am using:

heroku logs

S

4条回答
  •  梦谈多话
    2021-02-01 13:59

    The problems seems to be that the Heroku holds maximum 1500 lines of logs. To persists and have an ability to see more history you have to add some syslog drain to catch the logs or use some addon for that.

    There are also "free" addons for storing logs like Logentries and Papertrail https://addons.heroku.com/#logging.

提交回复
热议问题