记录Google App Engine应用程序 [英] Logging Google App Engine application

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

问题描述

我使用开发服务器制作了我的GAE应用程序,但是现在,当我将它部署到GAE云时,某些功能不起作用(某些元素缺失),但不会引发异常。



现在我想对我的代码进行一些日志记录,以便我可以了解为什么这些东西可以在开发环境中使用,但不在GAE云中,但我没有没有找到像我在Eclipse中使用开发服务器一样记录事件的方法。



那么是否可以像在Eclipse开发服务器中那样记录事件?

解决方案

用Java编写的Google App Engine应用程序可以使用java.util.logging.Logger将信息写入日志文件。使用管理控制台可以查看和分析应用程序的日志数据,或者使用appcfg.sh request_logs下载。 更多信息请参阅记录文档


I have made my GAE application using the development server, but now when I deploy it to GAE cloud, some features don't work (some elements are missing), but no exceptions are thrown.

Now I'd like to have some logging to my code so I could find out why these things are working in development environment, but not in GAE cloud, but I haven't found a way to log events like I can do with the development server in Eclipse.

So is it possible to log events like you can do in the Eclipse development server?

解决方案

Google App Engine applications written in Java can write information to the log files using java.util.logging.Logger. Log data for an application can be viewed and analyzed using the Administration Console, or downloaded using appcfg.sh request_logs.

More info in the Logging documentation.

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

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