Migrating from Standard to Flexible, logs don't show up the same way

89 views
Skip to first unread message

Jeremy D

unread,
Feb 2, 2020, 1:24:38 AM2/2/20
to Google App Engine
I imagine there's more setup to be done but can't find any documentation about it. 

Using python standard, any time we use
logging.info("whatever log")

it gets sent to Logging under the request, with an icon for what level severity, like this:

In Flexible however, when we log something in the exact same way, its spread out across Logging as individual log entries, making it extremely difficult to read the logs/get any sense of actual errors.


How can we fix this so that we only see one single line item per request, and any logs within that?

Aref Amiri (Cloud Platform Support)

unread,
Feb 3, 2020, 11:45:23 AM2/3/20
to Google App Engine
The logs in Flex environment are not bundled per request and logs from stdout and stderr are collected separately. To group the logs and customize them, you may want to use the Styackdriver Logging API directly. You can also refer to this page for details on writing application logs.

Jeremy D

unread,
Apr 13, 2020, 2:34:09 PM4/13/20
to Google App Engine
Still not showing in the same line. 

chrome_3Fer0G8tTg.png

Jeremy D

unread,
Apr 13, 2020, 2:36:01 PM4/13/20
to Google App Engine
Additionally, "Note that this does not provide log levels that you can use for filtering in the Logs Viewer", that makes Logging entirely useless....

Jeremy D

unread,
Apr 13, 2020, 8:42:51 PM4/13/20
to Google App Engine
I've created a stack overflow question that goes into more detail. https://stackoverflow.com/questions/61199007/appengine-flexible-logging-with-pyramid

This is an immense hindrance to Logging and really really does make it awfully useless.
Reply all
Reply to author
Forward
0 new messages