Ticket #103 (closed task: fixed)
Add debugWarning and io log levels
| Reported by: | jteh | Owned by: | jteh |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.6p2 |
| Component: | Core | Version: | development |
| Keywords: | Cc: | ||
| Operating system: | Blocked by: | ||
| Blocking: |
Description
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.
Tasks
- 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.


NVDA is developed by