How to see untrimmed logs on Heroku Local

回眸只為那壹抹淺笑 提交于 2020-02-01 01:33:04

问题


I'm running a NodeJS app on heroku local, however all my console.log statements and error messages get trimmed.

For example:

forego | starting web.1 on port 5000
web.1  | module.js:339

I don't see the full error logs. How to avoid this trimming of error messages?


回答1:


heroku local will run whatever processes you tell it to in the Procfile. If you'd like to stream your development log, simply add something like log: tail -f log/development.log to your Procfile. You'll also want to make sure that you create a second Procfile (I use Procfile.dev) for this. Replace the log file path with wherever your desired log file is located.

Cheers!




回答2:


Did you try?

$ heroku help local

Source: https://devcenter.heroku.com/articles/heroku-local

Is this deployed already? If so:

On terminal/bash:

$ heroku logs

On your heroku account:

1) Go to you account and then apps and then the log for that app



来源:https://stackoverflow.com/questions/34156205/how-to-see-untrimmed-logs-on-heroku-local

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!