3 ms·
I find it impossible to take seriously any argument that claims to be true in general, but where the only example given is logging. Logging is weird and specia
by mkozlows 12y ago
I find it impossible to take seriously any argument that claims to be true in general, but where the only example given is logging.
Logging is weird and special, running at unusual times in unusual states, and therefore has unusual requirements.
So, yeah, having a pile of arbitrary functions that your logger can call is not really going to work. But if this were a "notify when a comment is posted" example, the author would really struggle to find problems with that same approach, because that's a much safer operation that happens in a more predictable way than logging is.
The only real takeaway from this article is "be careful with your logging implementation," but hopefully you already knew that.