diff --git a/README.md b/README.md index f744c2e..0f74c4f 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ package main import ( "github.com/isovalent/instruqt-go/instruqt" + "cloud.google.com/go/logging" ) func main() { @@ -47,6 +48,14 @@ func main() { clientWithTimeout := client.WithContext(ctx) userInfo, err := clientWithTimeout.GetUserInfo("user-id") + + // Attach a logger + logClient, err := logging.NewClient(ctx, "some-gcp-project") + if err != nil { + panic("failed to create log client") + } + stdLogger := logClient.Logger("my-std-logger") + client.InfoLogger = stdLogger.StandardLogger(logging.Info) } ```