Skip to content

Commit

Permalink
Merge pull request #20 from emahiro/fixup/readme_2019081502
Browse files Browse the repository at this point in the history
fixup! update readme
  • Loading branch information
Hiromichi Ema authored Aug 15, 2019
2 parents 7f02974 + 01a4b43 commit 39cea2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 39cea2e

Please sign in to comment.