google app engine - GAE Logs API (Python) - Requests to Static Handler Do Not Show Up -


i have python google app engine app , wish query server logs insight requests handled static file handler.

that is, have static handler serving images folder called /static:

from app.yaml:

handlers: - url: /static/*   static_dir: static/ 

for purpose trying logs using logservice class (logs api), documented nicely here.

long story short, bit of code fetches logs:

start_time = time.time() - 86400 end_time = time.time() req_log in logservice.fetch(end_time=end_time,                 start_time=start_time,                 offset=none,                 minimum_log_level=none,                 include_app_logs=true):                 app_log in req_log.app_logs:                     result += ('<br />message: %s<br />' % app_log) 

the thing is, getting logs requests generated dynamic content handler. while able see logs static requests in gae logs dashboard, , these requests accounted when download logs using appcfg, not returned logservice.fetch metohd.

is there way around bug/weird design decision? not want download file using appcfg, want access logs programatically without having deal file download (this logs api made for...).


Comments

Popular posts from this blog

android - Automated my builds -

how to proxy from https to http with lighttpd -

python - Flask migration error -