从 GAE 批量下载日志
我想将所有日志下载到名为“appcfg.py”的文件中。
我不使用 app.yaml,但我写了一个非常简单的:
"application: myAppId
version: 1
runtime: java"
我使用这个命令:
python appcfg.py --append request_logs "app.yaml's path" logs.txt
而且我总是得到:
Value 'java' for key runtime does not match expression '^python$' in
"app.yaml's path", line 3, column 10
我应该怎么做才能下载我的所有日志?
I'd like to download all my logs to a file with "appcfg.py".
I don't use app.yaml, but I wrote a very simple one:
"application: myAppId
version: 1
runtime: java"
I use this command:
python appcfg.py --append request_logs "app.yaml's path" logs.txt
And I always get:
Value 'java' for key runtime does not match expression '^python
What should I do to download all my logs?
in
"app.yaml's path", line 3, column 10
What should I do to download all my logs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看来你使用的是Java运行时,所以看一下:
参数可以在这里找到:
It seems that you are using the Java runtime, so take a look at:
And the arguments can be found here:
仅供参考,如果您使用 Eclipse,则可以在安装 GAE SDK 的 Eclipse 插件目录中找到 Java
appcfg.sh
脚本。在我的 Mac 上,它位于:我在 Eclipse 中运行的 GAE 项目文件夹中进行了 chdir,然后运行它:
war
是项目内 war 文件的目录。您应该看到:该脚本运行 jar 文件,该文件会提示您输入电子邮件和密码(我不知道他们如何/是否保护它)。如果您使用配置的双因素身份验证,那么您'需要使用
--oauth2
参数。这需要(我猜)1.7.X 版本的 SDK,因为它在 1.6.6 中不可用。当然他们的文档不谈论版本。Just for posterity, if you are using Eclipse, the Java
appcfg.sh
script can be found inside of the Eclipse plugins directory where the GAE SDK gets installed. On my Mac this is in:I chdir'd inside my GAE project folder that is running in Eclipse and then ran it like:
The
war
is the directory of your war files inside your project. You should see:The script runs the jar file which should prompt you for your email and password (I don't know how/if they are protecting it). If you are using the two-factor auth configured then you'll need to utilize the
--oauth2
parameter. This requires (I guess) a 1.7.X version of the SDK because it wasn't available in 1.6.6. Of course their docs don't talk about versions.