I have installed the package for all of the logs in my Laravel 7 project. There is only thing I couldn't figure out. In the Google Cloud Logging (GCL), I can see the logs but there is no trace information. Without the trace it is difficult to point to error in the project.
In logging.php in Laravel I have setup a new channel as follows
Hi,
I have installed the package for all of the logs in my Laravel 7 project. There is only thing I couldn't figure out. In the Google Cloud Logging (GCL), I can see the logs but there is no trace information. Without the trace it is difficult to point to error in the project.
In logging.php in Laravel I have setup a new channel as follows
and changed LOG_CHANNEL to 'gcl' in .env file.
In Logs Explorer in GCL, I see the log as follows
I was expecting to see the whole trace under data element in jsonPayload.
After I have added new lineFormat, I can see the last line of the trace in the GCL but not all of it and all of the data is in the message section
I can live with this but is there better configuration that I can get the whole trace in Google Cloud Logging ?