0

firepython を使用してログを firebug に表示できます。

しかし、ローカルホストのログウィンドウにログを表示する方法は?

ありがとう

4

1 に答える 1

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)

  .....

うまくいけば、それは役に立ちます。

于 2010-05-19T10:41:04.710 に答える