Skip to content

Commit

Permalink
update readme doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonstreator committed Nov 21, 2023
1 parent 3c8a653 commit cb01a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit cb01a6b

Please sign in to comment.