3 ms·
Yes I've thought about this topic as well. All loggers in all languages have these different levels. But rarely is it defined which to use when! It's considere
by adrianmsmith 14y ago
Yes I've thought about this topic as well.
All loggers in all languages have these different levels. But rarely is it defined which to use when! It's considered "obvious" but, unless it's actually defined, each programmer will find it obvious in a different way. Reading the logfile in production or using rules to only display logs beyond a certain severity won't be useful if every piece of code uses different levels to mean different things.
Here are the rules I came up with:
http://www.databasesandlife.com/which-log-levels-to-use-when/ http://www.databasesandlife.com/which-log-levels-to-use-when...
- gingerlime 14y agolooks like we have the same idea of which levels makes sense. It's surprising how many developers don't bother thinking about it or realising the importance of logging in general, and consistent logging in particular.