Hacker News new | ask | show | jobs
by z0mbie42 2887 days ago
Hi, thank you for the feedback.

For the moment, it stands between logrus and zerolog/zap in term of speed/allocation.

For a message with 10 fields, zerolog does 6 allocs, astroflow 13 and logrus 54, but the UX is far better than zerolog (IMO).

OTH there is no cost (only 1 if comparison) if the level is not enabled.

In a near future the same mechanism as in zeolog will be implemented which enable to reduce allocations in tradeoff of writing more verbose code.