Does anyone here know now to emit structured logs ( https://cloud.google.com/logging/docs/samples/logging-write-log-entry#logging_write_log_entry-java ) ideally via clojure.tools.logging?
I have a cloud run process
actually clearly clojure.tools.logging isn’t going to do it… as it’s an unstructured logger — in which case are there any wrappers for it?
Looks like this route might be possible: clojure.tools.logging -> slf4j -> logback -> https://github.com/googleapis/java-logging-logback
that article mentions structured logging mentions ulog and pedestal log
@oliver.marks: Thanks but “structured logging” and “GCP’s structured logging” are I think two different things.
ah could be I have not looked into using it in gcp, I use sentry for logging
be curious what you come up with though 🙂
It’s very hard to get details on what the underlying format is… I think it’s some kind of REST API underneath
looks like it might be protocol buffers underneath
I guess that makes sense, it would also make sense that there would be a library for logback so perhaps that is a good path although your link above does not have many stars