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/54f25c68-0b1c-4224-b6ba-044474387786%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
