Ticket #226 (new enhancement)

Opened 4 years ago

Last modified 4 years ago

Display console warnings in a debug window too by taking advantage of our custom message handler

Reported by: diederik Owned by:
Priority: minor Milestone: open
Component: GUI (general) Version: 2.0-alpha
Keywords: Cc:

Description (last modified by diederik) (diff)

With our custom debug message handler, it would also be possible to redirect all output of the console to a error-dialog instead. That way, we can display WARNING error messages in a debug window, or our network window for example.

When we're doing more advanced stuff from this message handler, also make sure the code can't cause recursions. This can be avoided by keeping a global variable "inMessageHandler" variable.

Note though that the kWarning() and kDebug() output can be redirected to a log file or be disabled by default. That way it won't pass our message handler.

Change History

Changed 4 years ago by diederik

  • description modified (diff)
  • summary changed from Add warning log which takes advantage of our custom message handler to Display console warnings in a debug window too by taking advantage of our custom message handler

Changed 4 years ago by diederik

  • component changed from Other to Deployment

Changed 4 years ago by diederik

  • component changed from Deployment to GUI (general)
Note: See TracTickets for help on using tickets.