Can I get Heroku Logs to return only lines outlining errors?

前端 未结 7 2539
眼角桃花
眼角桃花 2021-02-19 03:33

The heroku logs are a great resource to check what happened to your app when things go wrong.. Unfortunately, they also log a great deal of information. Is there some way I can

7条回答
  •  孤独总比滥情好
    2021-02-19 03:43

    Don't forget the --app flag. e.g.

    heroku logs --app my-live-app | grep -i error

    What I found helpful was the -d parameter: setting the type of log e.g. -d web Good when you have workers running tasks in the background and you just want to see whats going on with Web.

    Otherwise what @leonardoborges said I'd agree with. NewRelic or similar can work well.

提交回复
热议问题