Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support structured logging in Cloud Run #188

Open
yuryu opened this issue Feb 24, 2021 · 0 comments
Open

Support structured logging in Cloud Run #188

yuryu opened this issue Feb 24, 2021 · 0 comments

Comments

@yuryu
Copy link
Member

yuryu commented Feb 24, 2021

Cloud Run and Cloud Logging have structured logging support and it'd be nice to support it. Logrus supports custom json, so we just need to map fields.

json formatter: https://pkg.go.dev/github.com/sirupsen/logrus#JSONFormatter
special fields: https://cloud.google.com/logging/docs/agent/configuration#special-fields

Alternatively we can consider using stackdriver-gae-logrus plugin: https://github.com/andyfusniak/stackdriver-gae-logrus-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant