So I've been banging my head against this for a while now, thought I'd ask here.
Is it possible to use structured logging from within a Cloud Function?
The log and metrics agents aren't available in CF and I'd like some richer data in our StackDriver logs (mainly to leverage for some log-based metrics).
Does anybody have some pointers as to what is possible without the extra machinery available using a log agent?
I posted this community wiki answer to make the recommendation provided by @Andrew Haines more visible. This question was answered here. Please find solution summary below:
Values for
severity
can be found here.