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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Time

Time

Photo of count

count

Related news:

News photo

Einstein Showed That Time Is Relative. But … Why Is It?

News photo

Time for Britain's CMA to strike hard – or risk losing the cloud competition fight

News photo

Netflix uses generative AI in one of its shows for first time