我在heroku中的日志文件在哪里? [英] where are my log files in heroku?

查看:91
本文介绍了我在heroku中的日志文件在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已配置日志记录以转到控制台和一个日志文件.在heroku世界中,登录文件甚至有意义吗?有什么办法可以检索日志文件?

I have logging configured going to console and a log file. In heroku world, does it even make sense to log to a file? Is there any way I can retrive the log file?

推荐答案

日志是流,而不是文件.

要访问日志流,只需单击heroku logs,您将看到完整的流.您与应用程序记录器一起输出的所有内容都将移至此处.

To access the logging stream, you simply heroku logs and you'll see the full stream. Anything you output with your applications logger will go here.

您没有日志文件.

您是否希望捕获要装裱的文件并放在墙上,注册 Papertrail 之类的服务并使用syslog排空以获取您的Heroku日志到那里.他们可以从那里转储到S3.

Should you wish to capture files to frame and put on your wall, sign up for a service such as Papertrail and use the syslog drains to get your Heroku logs into there. From there they can dump to S3.

这篇关于我在heroku中的日志文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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