Open ejstembler opened 3 years ago
I think in godoc for hlog there is an example without Alice.
Here: https://betterstack.com/community/guides/logging/zerolog/#using-zerologs-net-http-helpers
But read the nearby sections too, you might consider skipping the use of the hlog package to avoid lots of middleware function calls (either nested or in a loop "alice style") depending on your application needs -- although maybe nowadays the golang compiler will notice and unroll them all as inlines and then group-optimize them LTO-style.
It would be great if you could provide examples of how to use Zerolog with net/http (hlog) without Alice.