Is logging to console fully supported for app engine flexible?

67 views
Skip to first unread message

E EE

unread,
May 4, 2017, 6:40:57 PM5/4/17
to Google App Engine

Hi, I am using java on app engine flexible. Logging via java.util.logging as explained in the docs.


The logs that show up in the console are plain text output, as if STDOUT was sent directly to the console line by line without any other information (so each line is a log record)

 

For example log level is missing, so I cannot filter by log level in the console, like I can on log messages sent by nginx.

 

Is there any additional configuration that I have to do, like add a google specific handler?

Is fully formatted log supported only in standard environment?

E EE

unread,
May 4, 2017, 6:42:32 PM5/4/17
to Google App Engine
A follow up question:
If this is a simple pipe of STDOUT, why do I have to use java.util.logging? All log frameworks have the ability to write to stdout.

Zachary Fewtrell

unread,
May 5, 2017, 4:29:28 PM5/5/17
to Google App Engine
Hi E,
 Looking at our public docs App Engine flexible supports application logging via stdout with no particular framework mentioned (although standard does).  Can you provide a link for the docs which require java.util.logging for flexible environment?

Thanks,
 Zach

E EE

unread,
May 10, 2017, 8:46:59 PM5/10/17
to Google App Engine
Docs are for standard, not always clear which is which. So Flexible has no logger unless I implement one using the API of whichever log framework I choose (other than stdout).

Justin Beckwith

unread,
May 11, 2017, 12:08:32 AM5/11/17
to google-a...@googlegroups.com, Rajeev Dayal, Les Vogel, Amir Rouzrokh
You should be able to use the logging library in google-cloud-java, and get structured output.  I've added a few folks from the Java team who can share more!

On Wed, May 10, 2017 at 5:46 PM, E EE <voice...@gmail.com> wrote:
Docs are for standard, not always clear which is which. So Flexible has no logger unless I implement one using the API of whichever log framework I choose (other than stdout).

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/a5150666-a9cb-4747-adab-e4b59defe49e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Justin Beckwith | Google Cloud Platform | @justinbeckwith | http://jbeckwith.com
Reply all
Reply to author
Forward
0 new messages