GUI for graphically handling log records. This defines a Handler, and has methods for turning off console logging. (Another class should be used to log stderr and stdout messages.) Users can dump the records to a file for remote analysis.
Creates new form LogConsole
status is the highest LOG Level seen in the past 300ms.
add method for listening to the console messages. Note this may change!
create a handler that listens for log messages. This handler is added to the Loggers that should be displayed here. Also, the log levels of the Loggers should be set to ALL, since the filtering is done here. For example:
Handler h = lc.getHandler(); Logger.getLogger("autoplot").setLevel(Level.ALL); Logger.getLogger("autoplot").addHandler(h);
create loggers that log messages sent to System.err and System.out. This is used with turnOffConsoleHandlers. This checks to see if stderr and stdout are already logging, for example when a second application is launched in the same jvm.
remove prompts which are sometimes copied into mouse buffers. This detects "AP> ", ">>> ", and "... ".
iterate through the Handlers, looking for ConsoleHandlers, and turning them off.
remove this hook for listening to stdout and stderr messages.
note this is generally called from a timer that coalesces events. But may be called explicitly in response to a user event as well. This should be called on the event thread!