views:

647

answers:

2

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?

+4  A: 

See http://code.google.com/appengine/docs/python/runtime.html#Logging
and http://docs.python.org/library/logging.html

You probably want to use something like:

logging.debug("value of my var is %s", str(var))
vartec
How can i do the same in java?
Manjoor
+2  A: 

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/

Sam