Often when I am coding I just like to print little things (mostly the current value of variables) out to console. I don't see anything like this for Google App Engine, although I note that the Google App Engine Launcher does have a Log terminal. Is there any way to write to said Terminal, or to some other terminal, using Google App Engine?
From stackoverflow
-
See http://code.google.com/appengine/docs/python/runtime.html#Logging
and http://docs.python.org/library/logging.htmlYou probably want to use something like:
logging.debug("value of my var is %s", str(var))Manjoor : How can i do the same in java? -
You should also give FirePython a look. It allows you to get server log messages in firebug.
http://appengine-cookbook.appspot.com/recipe/firepython-logger-console-inside-firebug/
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.