Hello Christian

To visualize your logs,you can export your log using this 
<https://cloud.google.com/logging/docs/export/> documentation so that they 
can be used with available external tools. You can also export it to 
BigQuery if you want to analyze the logs from the Google Cloud Platform. 
This 
<https://cloud.google.com/bigquery/audit-logs#querying_audit_logs_using_bigquery>
 
documentation explains how to querying and analyze audit logs, as an 
example, using BigQuery. 

As this 
<https://cloud.google.com/appengine/docs/standard/php7/writing-application-logs#writing_application_logs_1>
 
document mentioned, “When your application handles a request, it can write 
its own logging messages to stdout and stderr. Write your application logs 
using stdout for output and stderr for errors. These files are 
automatically collected and can be viewed in the Logs Viewer. Note that 
this does not provide log levels that you can use for filtering in the Logs 
Viewer; however, the Logs Viewer does provide other filtering, such as 
text, timestamp, etc.”, which looks like an intended behavior that 
stackdriver only shows the logs which is written using stderr and stdout 
for PHP[7.2]. To address your second question,I have created a feature 
request <https://issuetracker.google.com/118626126>, so that the log level 
can be redirected with their severity to the "request_log" list. Please 
note there is no guarantee or ETA for any feature request. Future updates 
will be posted in this feature request. 

On Friday, October 26, 2018 at 10:05:21 AM UTC-4, Christian Wiedemann wrote:
>
>
> Hello,
>
> with GAE runtime php72, logs, that are written using syslog() do not 
> longer appear in the standard Logging overview and are not marked with 
> icons and colors by their severity.
>
> You need to select additional logs in the second dropdown to see what you 
> logged.
>
> Logs sent by PHP itself or by error_log() appear under "stderr" 
> and for custom logs sent by syslog() you need to select "/dev/log" and 
> the error messages are just appearing in JSON format.
>
> In php55 each notice/warning/error could be identified directly by looking 
> on the Logging page or filtering by log level. 
> Now identifying of errors is much harder.
>
> Is there a better way to log custom logs or to visualize the logs (without 
> Stackdriver)?
> Are there plans to redirect logs with their severity to the "request_log" 
> list?
>
> For instance:
> <? syslog(LOG_DEBUG, "Test") ?>
> leads to
> {"severity":7,"facility":1,"timestamp":"2018-10-26T13:14:54Z","hostname":"","app_name":"php-fpm","procid":"","msgid":"","structured_data":"","message":"pool
>  
> app: Test"}
>
>
> Yours Christian
>
>
> ----------------------------------------------------------------------------------------------
> Rechtlicher Hinweis nach §35a Abs. 1 S. 1 im GmbHG. 
>
> *Wabion GmbH*
> Geschäftsfuehrer: Michael Walther, Volkmar Binder
> GmbH Sitz: Esslingen, HRB 354492 (Amtsgericht Stuttgart)
>
> This e-mail (and/or attachments) is confidential and may be privileged. 
> Use or disclosure of it by anyone other than a designated addressee is 
> unauthorized.
> If you are not an intended recipient, please delete this e-mail from the 
> computer on which you received it. We thank you for notifying us 
> immediately. 
>
> ----------------------------------------------------------------------------------------------
>

-- 
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/0d1ef4f9-44d5-4b9f-b4b7-34b32e29f017%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to