How do I write to the console in Google App Engine?

前端 未结 11 1670
终归单人心
终归单人心 2020-12-08 09:30

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, alth

11条回答
  •  醉话见心
    2020-12-08 10:02

    See https://cloud.google.com/appengine/docs/python/requests#Python_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))
    

提交回复
热议问题