On Google Cloud, when using a GAE or a cloud function in nodejs, we can log to stackdriver directly via stdout, as they explain here as follows:
Note: Logs written to stdout and stderr are automatically sent to Stackdriver Logging for you, without needing to use the Stackdriver Logging libraries for Node.js.
Is it possible to add structure to these logs? Like jsonPayload
?
I would love to avoid client libraries, if possible.