请求记录所有版本的Google App Engine应用程序 [英] Request Logs for All Versions of Google App Engine Application

查看:114
本文介绍了请求记录所有版本的Google App Engine应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何请求Google App Engine应用程序的所有日志?所有日志,我的意思是所有的应用程序版本日志。



我们会在每次部署时增加应用程序的版本。我有一个脚本,每隔30分钟就会提取一些日志文件,以便进行一些离线分析。



这是我的脚本现在调用的内容。
appcfg.py --append --num_days = 0 --include_all request_logs / opt / gae / appname / /var/log/gae/appname.log

这不会获取所有应用程序版本日志文件,而只会获取/opt/gae/appname/app.yaml文件中指定的版本。问题是,该app.yaml文件中的任何内容可能不是实时的,而是仍在开发中。



如果我们有--version = 0标志,它为所有版本提供了日志,就像它为--num_days = 0所做的一样。 您可以获取日志使用 LogService Api ,请参阅参数 version_ids
我相信你可以修改appcfg.py,下载所有版本日志。



你可以在 http://code.google.com/p/googleappengine/issues/list


Does anyone know how to request all logs of a Google App Engine application? By all logs, I mean all app versions logs.

We increment the version of our app with every deployment. I have a script that pulls the log files every 30 minutes for some offline analytics.

This is kinda what my script is calling right now. appcfg.py --append --num_days=0 --include_all request_logs /opt/gae/appname/ /var/log/gae/appname.log

This does not get all app versions logs files, but only the version that's specified in the /opt/gae/appname/app.yaml file. The problem is that whatever is in that app.yaml file might not be live, but rather still in development.

It would be nice if we had --version=0 flag that pulled the logs for all the versions, like it does for --num_days=0.

解决方案

You can fetch the logs using the LogService Api, see parameter version_ids. I'm sure you could modify appcfg.py, to download all version logs.

You could add an issue asking for this feature at http://code.google.com/p/googleappengine/issues/list.

这篇关于请求记录所有版本的Google App Engine应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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