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

前端 未结 7 2536
眼角桃花
眼角桃花 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 04:01

    Try this:

    heroku logs -t | grep 'error'
    

    To get a running list of errors as and when they occur.

    The inverted commas around 'error' did it for me.

提交回复
热议问题