From 01a4b438c0f4c27b21c85877cde87eac66a9b95f Mon Sep 17 00:00:00 2001 From: emahiro Date: Thu, 15 Aug 2019 23:55:39 +0900 Subject: [PATCH] fixup! update readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 39c989c..4387d4e 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,8 @@ App Engine Plain Logger only supports structured logging (ref: https://cloud.goo ```go mux := http.NewServeMux() mux.HandleFunc("/", func(writer http.ResponseWriter, request *http.Request) { - log.Infof("some log message) + ctx := request.Context() + log.Infof(ctx, "some log message) }) h := middleware.AEPlainLogger("ServeHTTP")(mux)