3 ms·
> this article touches on maybe 1/10 of the usecases of logging...and than pretends that the opinion is applicable everywhere. It's definitely a weird article.
by ekidd 7y ago
> this article touches on maybe 1/10 of the usecases of logging...and than pretends that the opinion is applicable everywhere.
It's definitely a weird article.
I maintain an open source tool called dbcrossbar that automates data transfer between several kinds of databases. It uses multiple async streams to copy data, and it has a "backpressure" system that keeps every step of the transfer in sync. Usually it's very reliable, but if it goes wrong, then I need debugging tools.
We use the "slog" library for structured logging. This allows us to add extensive structured data to our logs, and to keep track of what's coming from where. We can increase or decrease the log level for each component individually.
And these logs are invaluable for debugging. Like, almost every time we have any problem at all, we all sit around saying, "Wow, we're so glad we have such good logging."