Log directly to stdout when running under GKE
nhooyr opened this issue · 3 comments
nhooyr commented
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
nhooyr commented
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.
nhooyr commented
See https://cloud.google.com/logging/docs/structured-logging#structured-log-install
Would really simplify the GKE logging package.