Hi Yao,

You can actually write your application log entries using the psrLogger 
method, which will fetch a PSR-3 complaint logger, and you can have more 
info by looking at Writing applications logs 
<https://cloud.google.com/appengine/docs/flexible/php/writing-application-logs#writing_application_logs_1>
.

- Jun


On Thursday, May 25, 2017 at 6:36:25 PM UTC-4, Yao Li wrote:
>
> 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 [email protected].
To post to this group, send email to [email protected].
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/d8d50887-c512-451a-ac13-d91ecda235b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to