How to determine what log level to use? [closed]
The log levels WARN, ERROR and FATAL are pretty clear. But when is something DEBUG, and when INFO? I've seen some projects that are annoyingly verbose on the INFO level, but I've also seen code that favors the DEBUG level too much. In both cases, useful information is hidden in the noise. What are the criteria for determining log levels? I don't think there are any hard-and-fast rules; using the log4j-type levels, my 'rules of thumb' are something like: FATAL : the app (or at the very least a thread) is about to die horribly. This is where the info explaining why that's happening goes. ERROR :