Google Appengine: programmatic access to request log files?
http://code.google.com/appengine/docs/what开发者_如何转开发isgoogleappengine.html
An app can read files, but only files uploaded with the application code.
I am assuming this precludes one from programmatically reading the request log files - is that correct?
There are two types of logs: HTTP request logs and the entries that are stored to the App Engine logger. As Dmitry mentions, it is possible to retrieve the HTTP request logs via appcfg.py, however, there's currently no interface for retrieving logs programmatically.
It'll be a good idea to add the enhancements to this issue in the issue tracker and star it: http://code.google.com/p/googleappengine/issues/detail?id=76
Edit because people are still commenting on this issue 3+ years later. There's been an update. There's now a Logs API that allows some of what you might be looking for.
now is possible
The Logs API provides access to the application and request
logs for your application.
https://developers.google.com/appengine/docs/java/logs/overview
I didn't try it but I believe that one can issue an HTTP request and get the logs, like appcfg.py does
精彩评论