Logging for long running processes ?

51 views
Skip to first unread message

Richard

unread,
Jul 26, 2017, 1:09:47 PM7/26/17
to Google App Engine
In the old days, I had a backend that ran 24/7 as the master server for a multiplayer game. As part of this, I would log misc information every 30 secs or so. This was all displayed in a single log entry in the old log viewer and worked well.

Enter stackdriver.... :(

Now I get the first 3-4 log statements on module startup and nothing else gets logged after that. Short of pushing all the log statement outputs into a DB text entry, how do I get to:
1) write the log statements to a single entry
2) see the entry

Python btw...

Thanks in advance.

-R

Evan Jones

unread,
Jul 26, 2017, 3:14:58 PM7/26/17
to Google App Engine
I'll assume this is App Engine Standard, running on a "backend" instance. I have a bunch of things that do something similar, and to get the logs to look sensible in the logs viewer, I start a new background thread to do the work about once a minute. The logs get attached to the "start time" of the background thread, so this means I see a sequence of "requests" each minute, with the appropriate messages in it. I'm not totally sure this is your problem, but if it is, you'll need to have your log task start a new thread periodically? I hope this helps,

Evan

Richard

unread,
Jul 26, 2017, 9:07:05 PM7/26/17
to Google App Engine
Unfortunately not ... I am hoping Jeff Schnitzer or some other knowledgeable person chimes in :)

On Wednesday, July 26, 2017 at 3:14:58 PM UTC-4, Evan Jones wrote:
I hope this helps,

Kenworth (Google Cloud Platform)

unread,
Jul 27, 2017, 8:08:59 PM7/27/17
to google-a...@googlegroups.com
Here is an interesting link about Exporting with Logs Viewer that maybe helpful to your case. If you suspect this is a defect or a viable feature request on our platform, please feel free to file an issue on Public Issue Tracker (PIT) for better tracking purposes.  

QQ: What is your Database?
Reply all
Reply to author
Forward
0 new messages