From cb01a6bf04a7368ac95a336ece31b85d3805e61d Mon Sep 17 00:00:00 2001 From: dillonstreator Date: Tue, 21 Nov 2023 12:19:03 -0600 Subject: [PATCH] update readme doc --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5839704c..611bd86b 100644 --- a/README.md +++ b/README.md @@ -564,7 +564,7 @@ c = c.Append(hlog.AccessHandler(func(r *http.Request, status, size int, duration Dur("duration", duration). Msg("") })) -c = c.Append(hlog.AccessHandlerNew(func(data hlog.AccessHandlerNewData) { +c = c.Append(hlog.AccessHandlerWithData(func(data hlog.AccessHandlerData) { hlog.FromRequest(data.Request).Info(). Str("method", data.Request.Method). Stringer("url", data.Request.URL).