Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: num_events_processed_since_last_log Clear Filter

Log by time, not by count

Log by Time, not by Count July 20, 2025 "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. This is a simple concept, but I've never seen it written down before. Let's quickly look at some pseudocode to understand what I mean. Count-based logging num_events_processed = 0 whi