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

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

    for checking all the logs in heroku console

    config.logger = Logger.new(STDOUT) config.logger.level = Logger::DEBUG

    put these two lines inside the environment on which you are running your heroku app(e.g. production.rb)

    You can check detail logs there also errors too if any.

提交回复
热议问题