Search code examples
logbackstackdrivergoogle-cloud-stackdriver

How to use jsonPayload on Logback with App Engine Standard (Java)?


I'm struggling to find a way to create log messages on StackDriver Logging on an App Engine Standard app (Java) using jsonPayload (structured log). If someone knows a reference please help me. Thanks.


Solution

  • There is an issue to transform the JSON Payload https://github.com/googleapis/google-cloud-go/issues/781

    But you could use this Workaround and implement a LoggingEnhacer, to transform the TextPayload (JSON format) to JSONPayload

    How to use Stackdriver Structured Logging in App Engine Flex Java environment