issue232: error notification

Priority: wish Status: in-progress
Messages
msg521 (view) Author: dkettler Date: 2009-11-27.10:57:08
There are currently two methods of reporting errors in conkeror; the message area and the console.  The
message area is used to report mistakes in the user's interaction and other problems that conkeror
specifically notices.

Errors in conkeror itself and errors in web page content are both reported on the console.  That output
can be swamped by errors in web pages that the user does not control, masking errors in conkeror.  It may
be worth providing more control over where errors appear and how they are presented.

Some suggestions:

  * Put content errors in a log file, separate from conkeror errors.

  * Have much terser errors on the output.  Put details in a log file.

  * A *Messages* buffer.

  * User-configurable streams for different log levels.
msg531 (view) Author: retroj Date: 2009-12-06.04:06:04
Another possibility that some people might like is colorizing terminal output with ansi escape
codes.
msg544 (view) Author: retroj Date: 2010-02-07.20:50:37
I have in mind something that looks like this:

  var log_routes = {
      interactive_error: show_in_minibuffer,
      error: dumpln,
      warning: dumpln
  };

  function log (type, text, context) {
      var logfn = log_routes[type] || dumpln;
      logfn(text, context);
  }

Any given function in log_routes receives both the text and a context object.  The context object would
include properties like "buffer" and "window" when relevant.  This means that the interactive context,
"I", could be used also as a log context.
History
Date User Action Args
2010-02-13 19:02:15retrojsetstatus: chatting -> in-progress
2010-02-07 20:50:37retrojsetmessages: + msg544
2009-12-06 04:06:04retrojsetstatus: unread -> chatting
messages: + msg531
2009-11-27 10:57:08dkettlercreate