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

前端 未结 4 611
感情败类
感情败类 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 14:04

    From the heroku doc:

    The logs command retrieves 100 log lines by default. You can specify the number of log lines to retrieve (up to a maximum of 1,500 lines) by using the --num (or -n) option.

    $ heroku logs -n 200
    

    So probably you need to request more lines with -noption.

    As per comment received, you can also stream the current log with:

    $ heroku logs --tail
    

    Please look at the doc

提交回复
热议问题