I have an app is built on GAE Flex Custom env (GCloud PHP Ngnix docker image based), I want to improve the application logging format.
How can I make the application log format better (more readable, with timestamp, POST/GET method name, status code (200), size (22 B), time (4ms), browser(chrome) in one line, put stack trace together instead of multiple lines now) like GAE logging format? All of the following logs are from Google Cloud Platform Console, Logging page/tab. (GAE default logging:) 15:21:23.667POST20022 B4 msChrome 56/User/isHuman (my application log, I want to collect following lines into one part like above default one rather than multi lines:) 15:21:27.0002017/05/25 22:21:27 [error] 23#23: *34128 FastCGI sent in stderr: "PHP message: [WARN] jsVersion does not match:3617 3623 15:21:27.000 Stack Trace: 15:21:27.000Array 15:21:27.000( 15:21:27.000[0] => Array -- 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+unsubscr...@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/b2edc3db-6046-4490-b1b5-21ee6239e2be%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.