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
I use:
heroku logs -n 1000 --tail
that 1000 is the number of lines you want to see and can be up to 1500.
I always use heroku logs -t --app your-app-name
It keeps the heroku console open .
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.
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 -n
option.
As per comment received, you can also stream the current log with:
$ heroku logs --tail
Please look at the doc