You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this does not yield the promised everything just works
Fair point. We're using this library on top of GKE (Kubernetes), which already streams all the logs of all the containers to Stackdriver. This library only structures the logs in such away that they match the expected log format of Stackdriver.
We use a small wrapper library around this library to make it easy to initialise the Zap logger itself. See: https://github.com/blendle/go-logger.
From looking at your snippet above, first of all, you should see logs appear in stdout when you run go run above.go. The format of those log lines should match what Stackdriver expects. What you are missing is the component that sends those logs to the correct Stackdriver API. That is not something that this library provides, it is only a wrapper around Zap to format the logs to Stackdriver's specification.
I'd welcome any updates to the README to link out to some helpful documentation on how to actually hook your application into Stackdriver, but I don't think actually writing those steps out in the README is within the scope of this library.
Hey, thanks for zapdriver!
I am struggling to fit it in my toy project, and feel that a minimal working example as quickstart guide could be of benefit here.
For example, going with the very last section of the current README file, this does not yield the promised everything just works ™:
… nothing shows up in Stackdriver,
The text was updated successfully, but these errors were encountered: