如何在google-app-engine日志窗口中显示日志

时间:2010-05-19 07:29:07

标签: google-app-engine localhost logging show

我可以使用firepython显示日志到firebug,

但是如何在localhost的日志窗口中显示日志?

感谢

1 个答案:

答案 0 :(得分:1)

如果是python,你可以试试这个:

import logging

class yourHandler(webapp.RequestHandler):

  .....

  def get(self):
    .....

    # place this anywhere you want GAE log to show up in console
    logging.info("Something happen here, the value is " + variable_name)

  .....

希望它有所帮助。