How to request the Appengine Logs API for logs from ALL versions of the application?

I am trying to use the Logs API to request logs in my application. However, I would like to request logs for ALL versions of my application. The log service has a request parameter called majorVersionIds, which you can set to the list of versions for which you want to request, or null for the current current version.

I would like to request for ALL versions, but I do not have a static list of all versions that will be presented as a parameter. Any idea if there is a software way to get all versions of the application?

My current solution would be to add a filter to all my versions that add the current version to the list of all versions and use this, but it seems to be hackey.

+5
source share
1 answer

You can download all available logs from the command line using appcfg.py .

To use the logging API, you need to keep a list of available version identifiers and provide it with logservice.fetch .

-1
source

All Articles