2 ms·
When I last discussed this we ended up in a huge debate about whether we should be sending different log levels to different destinations, because of this dicho
by marcus_holmes 4y ago
When I last discussed this we ended up in a huge debate about whether we should be sending different log levels to different destinations, because of this dichotomy.
Debug messages shouldn't be stored on permanent logs (they frequently contain sensitive/private info). Alerts need to be sent to someone immediately (even if that's a different process monitoring the log file for alerts and raising them). Errors need context in order to diagnose them (ideally a stack trace). All of these are doing different things using the same interface.
Log levels end up being abused because of this. What we want is to be able to handle different situations differently. What we get is log levels.