Thanks Mohammad for the reply. The link I shared did contain a example of using the stackdriver logging library. Instead of StringPayload, I have used JsonPayload only, but still I don't see anything in my logs.
I want to clarify one doubt. Is structured logging possible in standard environment? Because when I see my logs, I see logLines instead of logEntry objects. On Friday, October 26, 2018 at 5:28:52 AM UTC+5:30, Mohammad I (Cloud Platform Support) wrote: > > Hello Kishu, > > Please kindly note that the article that you provided does not have > examples of structured logging. You can look into these documents instead > for Structured Logging > <https://cloud.google.com/logging/docs/structured-logging>explanation and > for an example on how to write structured logs > <https://cloud.google.com/logging/docs/api/tasks/creating-logs#writing_log_entries>. > > For more information on different payload formats please look into this > document LogEntry. > <https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry> > That being said, please use jsonPayload instead of StringPayload in order > to log JSON data into your logs in Stackdriver Logging. > > > On Wednesday, October 24, 2018 at 5:49:45 AM UTC-4, Kishu Agarwal wrote: >> >> I want to log json data in my logs. I have tried the steps mentioned here >> <https://cloud.google.com/logging/docs/reference/libraries#client-libraries-install-java> >> but >> still when I see my logs, all the log statements done using Logging doesn't >> show up there. >> >> Any help there? >> > -- 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/2ab853c5-6846-4785-ba72-d03b4ae4d2a5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
