[Standard AppEngine] [Stackdriver] Enhancing logging

37 views
Skip to first unread message

Ridha El Bekri Hernandez

unread,
May 28, 2018, 9:53:45 AM5/28/18
to Google App Engine
Hi everyone,

I m looking into helping my self monitor a Google App Engine application (Python Standard). I m using GAE as a service backend for a game that is going to be launched soon and I m trying to setup the most efficient tools I can to keep an eye on the heatlh of the application and have the best possible data to review / understand / fix any error.

I understood (but I might be wrong ^^) that the native python logging has been "linked" to stackdriver under the hood for the logs to be automatically managed and linked to stackdriver's trace, error and monitoring services. I also understood that the log is organised of a "RequestLog" handling an amount of "ApplicationLog"

All what we can do with the "logging" library is to write "ApplicationLogs" so I was wondering if there was a way to access and modify the RequestLog object adding relevant data (more easy to fecth or see at first glance) I got stuck when I figured out that we dont have access to google cloud api library in the standard environment.

Thank you in advance for your answers.

George (Cloud Platform Support)

unread,
May 28, 2018, 2:47:16 PM5/28/18
to Google App Engine
Hello Ridha, 

You are right: apps running in the App Engine flexible environment can write logs that are in addition to what is included in the App Engine standard environment. For related information, you may have a look at the "Supported environments" sub-chapter of the "About the Logging Agent" online document. 

What additional relevant data would you like to see in the Request Log? The list of existing data field in this log is listed in the "Understanding request log fields" sub-chapter of the "Reading and Writing Application Logs" online document. 

Contrary to what you seem to assume, one does have access to third-party libraries in the standard environment, as detailed in the "Using third-party libraries" document
Reply all
Reply to author
Forward
0 new messages