如何使用ssh在Heroku上保留日志尾部? [英] How to keep log tail alive on Heroku using ssh?

查看:148
本文介绍了如何使用ssh在Heroku上保留日志尾部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 heroku logs - tail 这个工作好几分钟。然后停止显示日志。看起来ssh连接正在超时并正在死亡。没有错误或消息。在Ubuntu 11.04上使用有线连接。

Using heroku logs --tail which works great for a few minutes. Then it stops displaying the logs. It seems that the ssh connection is timing out and dying. There is no error or message. Working in Ubuntu 11.04 on wired conneciton.

我在〜/ .ssh / config中添加了以下内容:

I added the following to ~/.ssh/config:

ServerAliveInterval 5

但它不起作用。我需要配置文件中的其他东西吗?我怎么知道它是否在做任何事情?如何监控流量并查看Keepalive请求?

But it didn't work. Do I need anything else in the config file? How do I know if it is doing anything? How can I monitor the traffic and see the keepalive request? I am looking at System Monitor but don't see anything every 5 seconds.

谢谢。

推荐答案

事实证明,我正在寻找对错误问题的答案。为什么使用尾巴来保存日志?这是有问题的,劳动密集型和容易出错的。

It turns out that I was looking for an answer to the wrong question. Why use the tail to save logs? It is problematic, labor intensive, and error prone.

我找到的解决方案是Papertrail。小网站是免费的。 papertrailapp.com。

The solution I found was Papertrail. Small sites are free. papertrailapp.com.

以下是我博客的完整故事: http://www.onlineinvestingai.com/blog/2011/08/07/better-logging-with-papertrail-on-heroku/

Here's the complete story from my blog: http://www.onlineinvestingai.com/blog/2011/08/07/better-logging-with-papertrail-on-heroku/

这篇关于如何使用ssh在Heroku上保留日志尾部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆