Get the latest tech news
Log by time, not by count
By default, log based on fixed time intervals rather than number of messages.
"How to Log" is a surprisingly deep topic in software engineering with many different viewpoints, and they're almost all valid in different situations. I'm going to argue that when processing lots of events, it's best to log every X seconds, rather than every X messages. Lots of useless logs are costly to consume and retain.
Or read this on Hacker News