Reported by jteh on 2008-06-06 06:32
NVDA currently uses the standard log levels (debug, info, warning, error and critical). However, this does not allow for enough flexibility. There are currently quite a few warnings that most users don't care about, but we don't want them to be at the same level as the other debug messages. Also, we currently use the info level to log user experience (keyboard input, speech output, etc.), which many users don't care about either. Thus, we want to add two new levels between debug and info, debugWarning and io.
See LogLevels for information about the new usage of all log levels, including the new levels.
The new levels will reside between debug and info:
debugWarning at level 12
io at level 15
Import all level constants (DEBUG, INFO, etc.) into logObj.Logger for ease of access. Define the new level constants there also.
Use logging.addLevelName() for the new levels.
Write methods in logObj.Logger for the new levels.
Convert code to new level structure as appropriate:
Many warning messages will become debugWarning messages.
Most info messages will become io messages.
The text was updated successfully, but these errors were encountered: