4 ms·
This seems like an alternative to Zerolog, with some very small performance improvements. I don't understand why you wouldn't just improve Zerolog, or at least
by atombender 6y ago
This seems like an alternative to Zerolog, with some very small performance improvements. I don't understand why you wouldn't just improve Zerolog, or at least (if the original authors don't like your changes) just fork it. For me, while this looks decent, it doesn't justify an entirely new project, nor do I see any particular reason to switch.
Personally, I wish there was more focus on assimilating context.Context. While I dislike Context for its virulence in codebases, it's a necessary evil at this point. Correlating log statements with some request and following the logic flow (not just within a single app, but across apps) becomes really important in complex systems. The only way to really accomplish this is to flow the logger through Context. You should never instantiate a new logger except at the root of the program.