coder/slog

Log directly to stdout when running under GKE

nhooyr opened this issue · 3 comments

For GKE it looks like you can just log straight to stdout instead of having to use the client libraries for structured logging. Should investigate this and automatically switch: GoogleCloudPlatform/microservices-demo#48

Looks like we should be able to do this in general: https://stackoverflow.com/questions/35582153/logging-to-the-google-cloud-in-google-container-compute-engine-with-go

Makes sense, it's a far more elegant model.

Going to move to this after #35 is merged.

https://cloud.google.com/logging/docs/agent/installation