3 ms·
tl;dr: Mostly click-bait. ------- > I either want a quick notification about some critical error with everything inside, or I want nothing: a peaceful morning
by einpoklum 5y ago
tl;dr: Mostly click-bait.
-------
> I either want a quick notification about some critical error with everything inside, or I want nothing: a peaceful morning with tea and youtube videos. There’s nothing in between for logging.
1. No, there's lots in between.
2. You should be able set the log severity threshold, and hopefully the log verbosity threshold (e.g. with/without stack trace and other information).
3. We don't just log failures.
- rightbyte 5y ago> 3. We don't just log failures. Ye just log everything. You mostly don't know in advance where the error will be anyway. The author seem clueless. Don't log but use a Cloud $$$ SaaS for monitoring? Really? And then he goes on to argue that the code should just not fail. Like, "write good code".
- smikhanov 5y agoCorrect. The “try-catch-log” example from the article is so trivial that it can be used to support any argument really.