Dave, The same logs include both backend and frontend instance logging- they are not separated. You could be experiencing a delay before long-running backend log writes get flushed. You might be interested in the LogService API, http://code.google.com/appengine/docs/python/backends/logserviceapi.html which lets you periodically flush logs during long-running requests, and to examine an application's request logs and application logs.
On Sun, Jan 15, 2012 at 3:27 AM, Dave Loomer <dloo...@gmail.com> wrote: > The docs for downloading logs make no specific mention of backends, > and from my attempts it seems that you can only download logs for your > frontend. That would be strange though, and to make matters worse a > web search for "google app engine download backend logs" (no quotes > obvs.) reveals nothing relevant. Either I'm a true pioneer here or no > one else has had any troubles with this -- or no one else cares. Here > is what I've tried. > > First, the documented syntax (which gets you the frontend logs - no > issues here): > appcfg.py request_logs myapp/ mylogs.txt > > So to get the backend logs I have tried: > > -------- > appcfg.py backends request_logs myapp/ mylogs.txt <backend-name> > (Returns the error: appcfg.py: error: Expected a <directory> and > <action> argument.) > > -------- > appcfg.py backends request_logs myapp/ <backend-name> mylogs.txt > (As expected, returns the same error: appcfg.py: error: Expected a > <directory> and <action> argument.) > > > appcfg.py seems confused by "backends request_logs" so I then tried, > without the "backends" argument: > -------- > appcfg.py request_logs myapp/ <backend-name> mylogs.txt > (Returns the error: appcfg.py: error: Expected a <directory> argument > and an <output_file> argument.) > > -------- > appcfg.py request_logs myapp/ mylogs.txt <backend-name> > (Same thing: returns the error: appcfg.py: error: Expected a > <directory> argument and an <output_file> argument.) > > > And there is also the documented -vhost to restrict by domain: > -------- > appcfg.py --vhost=http://<backend-name>.<app-name>.appspot.com > request_logs myapp/ mylogs.txt > (console just shows that is downloading a frontend version number, and > the result is that I get nothing downloaded, probably because there > are no requests going to my frontend using my backend host name.) > > > So ... did Google really leave this out, or what am I missing? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appengine@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.