Re: [google-appengine] Python 3: how to deserialize App Engine application logs from StackDriver Logging API?

2019-11-07 Thread Ryan B
thanks guys! as mentioned, LogEntry.to_api_repr() is currently broken for this use case with the latest version of google-cloud-logging, 1.14.0. i've posted details on https://github.com/googleapis/google-cloud-python/issues/2572#issuecomment-551199704 (which is unfortunately closed right

Re: [google-appengine] Python 3: how to deserialize App Engine application logs from StackDriver Logging API?

2019-11-07 Thread 'Dustin Ingram' via Google App Engine
You can use the LogEntry.to_api_repr() function to get a JSON version of the LogEntry. On Thu, Nov 7, 2019 at 9:36 AM Ryan B wrote: > Hi again! As part of migrating to Python 3, I need

[google-appengine] Re: Python 3: how to deserialize App Engine application logs from StackDriver Logging API?

2019-11-07 Thread 'dustin...@google.com' via Google App Engine
Not sure why but my original response in this thread did not make it to the list. Here's what I wrote: You can use the LogEntry.to_api_repr() function to get a JSON version of the

Re: [google-appengine] Python 3: how to deserialize App Engine application logs from StackDriver Logging API?

2019-11-07 Thread 'Dustin Ingram' via Google App Engine
You'll need to use the latest version of the client as well. Here's a snippet that might help: >>> from google.cloud.logging import Client>>> entries = >>> Client().list_entries(... ('projects/brid-gy',),... >>> filter_='resource.type="gae_app" AND >>>

[google-appengine] Re: Python 3: how to deserialize App Engine application logs from StackDriver Logging API?

2019-11-07 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Ryan, You are right, posting to stackoverflow is the right thing to do for such a subject. You are now able to follow replies and suggestions in the new stackoverflow thread. This discussion group is oriented more towards general opinions, trends, and issues of general nature touching

[google-appengine] Re: Python 3: how to deserialize App Engine application logs from StackDriver Logging API?

2019-11-07 Thread Ryan B
Interesting. Dustin Ingram (Google DevRel) copied this question to StackOverflow , and answered it there, but not here. Is that standard for this group? In any case,

[google-appengine] Python 3: how to deserialize App Engine application logs from StackDriver Logging API?

2019-11-07 Thread Ryan B
Hi again! As part of migrating to Python 3, I need to migrate from logservice to the StackDriver Logging API . I have