Fork me on GitHub
#google-cloud
<
2022-05-23
>
rickmoynihan13:05:09

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?

rickmoynihan13:05:30

I have a cloud run process

rickmoynihan14:05:55

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?

rickmoynihan14:05:30

Looks like this route might be possible: clojure.tools.logging -> slf4j -> logback -> https://github.com/googleapis/java-logging-logback

oly14:05:30

that article mentions structured logging mentions ulog and pedestal log

rickmoynihan14:05:08

@oliver.marks: Thanks but “structured logging” and “GCP’s structured logging” are I think two different things.

oly14:05:59

ah could be I have not looked into using it in gcp, I use sentry for logging

oly14:05:19

be curious what you come up with though 🙂

rickmoynihan14:05:02

It’s very hard to get details on what the underlying format is… I think it’s some kind of REST API underneath

rickmoynihan14:05:29

looks like it might be protocol buffers underneath

oly14:05:46

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