2 ms·
I tend to put the logger in the context as it becomes request-scoped when you bind the request ID to it in middleware. Zerolog has a useful method to get the lo
by ayoisaiah 3y ago
I tend to put the logger in the context as it becomes request-scoped when you bind the request ID to it in middleware. Zerolog has a useful method to get the logger from the context, which is really handy.