From The Mana World
(Added log levels proposition)
 
(Some refinement)
Line 3: Line 3:
Proposition for log level usage:
Proposition for log level usage:


* '''TRACE''' - Parameter values, method start etc.
# '''FATAL''' - Extremely serious error, the program can't continue execution
* '''DEBUG''' - Intermediate results that could be useful while debugging
# '''ERROR''' - A serious error occured, but program keeps running
* '''INFO''' - Important events (e.g. new connection established)
# '''WARN''' - Something weird was detected, but it does not harm further program execution
* '''WARN''' - Something weird was detected, but it does not harm further program execution
# '''INFO''' - Important events (e.g. new connection established)
* '''ERROR''' - A serious error occured, but program keeps running
# '''DEBUG''' - Intermediate results that could be useful while debugging
* '''FATAL''' - Extremely serious error, the program can't continue execution
# '''TRACE''' - Parameter values, method start etc.


TRACE and FATAL are probably rarely used, while DEBUG and INFO are rather common.
TRACE and FATAL are probably rarely used, while DEBUG and INFO are rather common. In releases we should probably default to log level 4, while we could ask users who are having problems to set it to 5 or 6.
 
It would probably be a good idea to code a log tab into the chat dialog or a log area in the debug window. This could have a different level by default, for example level 3 for releases. This way users would be better aware of the slightly more serious problems occuring while they play.

Revision as of 17:02, 10 January 2006

Log levels

Proposition for log level usage:

  1. FATAL - Extremely serious error, the program can't continue execution
  2. ERROR - A serious error occured, but program keeps running
  3. WARN - Something weird was detected, but it does not harm further program execution
  4. INFO - Important events (e.g. new connection established)
  5. DEBUG - Intermediate results that could be useful while debugging
  6. TRACE - Parameter values, method start etc.

TRACE and FATAL are probably rarely used, while DEBUG and INFO are rather common. In releases we should probably default to log level 4, while we could ask users who are having problems to set it to 5 or 6.

It would probably be a good idea to code a log tab into the chat dialog or a log area in the debug window. This could have a different level by default, for example level 3 for releases. This way users would be better aware of the slightly more serious problems occuring while they play.