If it has to make API request, is there any way to write locally and also 
make the format pretty?

On Tuesday, May 30, 2017 at 2:13:48 PM UTC-7, Yao Li wrote:
>
> Does it make API request (Google Logging, will be slow in production) or 
> just print to stdout/stderr (should be super fast in production)?
>
> On Friday, May 26, 2017 at 7:53:01 PM UTC-7, Takashi Matsuo (Google) wrote:
>>
>>
>> We're developing a new logging library, which is under alpha testing 
>> phase (instructoins 
>> <https://docs.google.com/document/d/126NJTDNctB0zL8dwTo8-9indyWGUXpGkrXCKrHU4b-s/edit#heading=h.8t69iwn5s7dr>).
>>  
>> Please try this and let us know how it works for you.
>>
>> Thanks,
>>
>> On Fri, May 26, 2017 at 9:59 AM 'Jun (Cloud Platform Support)' via Google 
>> App Engine <google-a...@googlegroups.com> wrote:
>>
>>> 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 google-appengi...@googlegroups.com.
>>> To post to this group, send email to google-a...@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/d8d50887-c512-451a-ac13-d91ecda235b6%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/google-appengine/d8d50887-c512-451a-ac13-d91ecda235b6%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> -- Takashi
>>
>

-- 
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/c1dc4b3a-8d3a-4eec-8ab9-c8bedc797d14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to