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

前端 未结 7 2538
眼角桃花
眼角桃花 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:52

    Personally I think that logs aren't the best place to look as the error and the detail are easily missed. I would ensure that my code was raising errors to an external location to ensure that they don't get missed.

    There's a number of options ranging from the simple ExceptionNotifier, to more advanced systems such as Airbrake (which is what I use myself).

    Not only will these notify you of the errors, but they'll also given you a stack of meta information that you can use.

提交回复
热议问题