zap
zap copied to clipboard
ctx: store logger in context when missing or different that stored one
I really love the feature https://github.com/rs/zerolog/pull/81 because make easier implement features like this https://github.com/jackc/pgx/blob/cf0de913ee8facdfef0a7611d41cd67522b12c76/log/zerologadapter/adapter.go#L83-L92
I really love the feature rs/zerolog#81 because make easier implement features like this https://github.com/jackc/pgx/blob/cf0de913ee8facdfef0a7611d41cd67522b12c76/log/zerologadapter/adapter.go#L83-L92
I encapsulated a zap package(https://github.com/wuhongbing/zapctx) to support context,you can try it. zapctx
@lehoqi, would be amazing see this on the core project.