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

前端 未结 11 1671
终归单人心
终归单人心 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 09:44

    GAE will capture standard error and print it to the console or to a log.

    print >> sys.stderr, "Something to log."
    

提交回复
热议问题