<h2>org.autoplot.scriptconsole.LogConsole</h2><p>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.</p> <h2>LogConsole( )</h2> <p>Creates new form LogConsole</p> <hr> <a name="RECORD_SIZE_LIMIT"></a> <h2>RECORD_SIZE_LIMIT</h2> <p></p> <hr> <a name="PROP_SEARCHTEXT"></a> <h2>PROP_SEARCHTEXT</h2> <p></p> <hr> <a name="PROP_LOGSTATUS"></a> <h2>PROP_LOGSTATUS</h2> <p>status is the highest LOG Level seen in the past 300ms.</p> <hr> <a name="PROP_SHOWONLYHIGHLITED"></a> <h2>PROP_SHOWONLYHIGHLITED</h2> <p></p> <hr> <a name="PROP_SCRIPTCONTEXT"></a> <h2>PROP_SCRIPTCONTEXT</h2> <p></p> <hr> <a name="addConsoleListener"></a> <h2>addConsoleListener</h2> addConsoleListener( <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/event/ActionListener.html'>java.awt.event.ActionListener</a> listener ) → void <p>add method for listening to the console messages. Note this may change!</p> <h3>Parameters</h3> listener - an ActionListener <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=addConsoleListener&unscoped_q=addConsoleListener">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#addConsoleListener">[view on old javadoc]</a> <br> <br> <hr> <a name="getHandler"></a> <h2>getHandler</h2> getHandler( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html'>java.util.logging.Handler</a> <p>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: <blockquote><pre><small> Handler h = lc.getHandler(); Logger.getLogger("autoplot").setLevel(Level.ALL); Logger.getLogger("autoplot").addHandler(h); </small></pre></blockquote></p> <h3>Returns:</h3> handler for receiving messages. <br><br> <a href="https://github.com/autoplot/dev/search?q=getHandler&unscoped_q=getHandler">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#getHandler">[view on old javadoc]</a> <br> <br> <hr> <a name="getLogStatus"></a> <h2>getLogStatus</h2> getLogStatus( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html'>java.util.logging.Level</a> <p></p> <h3>Returns:</h3> java.util.logging.Level <br><br> <a href="https://github.com/autoplot/dev/search?q=getLogStatus&unscoped_q=getLogStatus">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#getLogStatus">[view on old javadoc]</a> <br> <br> <hr> <a name="getScriptContext"></a> <h2>getScriptContext</h2> getScriptContext( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/util/Map.html'>java.util.Map</a> <p></p> <h3>Returns:</h3> java.util.Map <br><br> <a href="https://github.com/autoplot/dev/search?q=getScriptContext&unscoped_q=getScriptContext">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#getScriptContext">[view on old javadoc]</a> <br> <br> <hr> <a name="getSearchText"></a> <h2>getSearchText</h2> getSearchText( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p></p> <h3>Returns:</h3> java.lang.String <br><br> <a href="https://github.com/autoplot/dev/search?q=getSearchText&unscoped_q=getSearchText">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#getSearchText">[view on old javadoc]</a> <br> <br> <hr> <a name="isShowOnlyHighlited"></a> <h2>isShowOnlyHighlited</h2> isShowOnlyHighlited( ) → boolean <p></p> <h3>Returns:</h3> boolean <br><br> <a href="https://github.com/autoplot/dev/search?q=isShowOnlyHighlited&unscoped_q=isShowOnlyHighlited">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#isShowOnlyHighlited">[view on old javadoc]</a> <br> <br> <hr> <a name="logConsoleMessages"></a> <h2>logConsoleMessages</h2> logConsoleMessages( ) → void <p>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.</p> <h3>Returns:</h3> void (returns nothing) <h3>See Also:</h3> <a href='null'>turnOffConsoleHandlers</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=logConsoleMessages&unscoped_q=logConsoleMessages">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#logConsoleMessages">[view on old javadoc]</a> <br> <br> <hr> <a name="maybeRemovePrompts"></a> <h2>maybeRemovePrompts</h2> maybeRemovePrompts( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> s ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p>remove prompts which are sometimes copied into mouse buffers. This detects "AP> ", ">>> ", and "... ".</p> <h3>Parameters</h3> s - the text entered. <h3>Returns:</h3> the text without prefix. <br><br> <a href="https://github.com/autoplot/dev/search?q=maybeRemovePrompts&unscoped_q=maybeRemovePrompts">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#maybeRemovePrompts">[view on old javadoc]</a> <br> <br> <hr> <a name="setLevel"></a> <h2>setLevel</h2> setLevel( int level ) → void <p></p> <h3>Parameters</h3> level - an int <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setLevel&unscoped_q=setLevel">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#setLevel">[view on old javadoc]</a> <br> <br> <hr> <a name="setScriptContext"></a> <h2>setScriptContext</h2> setScriptContext( <a href='https://docs.oracle.com/javase/8/docs/api/java/util/Map.html'>java.util.Map</a> scriptContext ) → void <p></p> <h3>Parameters</h3> scriptContext - a java.util.Map <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setScriptContext&unscoped_q=setScriptContext">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#setScriptContext">[view on old javadoc]</a> <br> <br> <hr> <a name="setSearchText"></a> <h2>setSearchText</h2> setSearchText( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> searchText ) → void <p></p> <h3>Parameters</h3> searchText - a String <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setSearchText&unscoped_q=setSearchText">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#setSearchText">[view on old javadoc]</a> <br> <br> <hr> <a name="setShowLevel"></a> <h2>setShowLevel</h2> setShowLevel( boolean selected ) → void <p></p> <h3>Parameters</h3> selected - a boolean <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setShowLevel&unscoped_q=setShowLevel">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#setShowLevel">[view on old javadoc]</a> <br> <br> <hr> <a name="setShowLoggerId"></a> <h2>setShowLoggerId</h2> setShowLoggerId( boolean selected ) → void <p></p> <h3>Parameters</h3> selected - a boolean <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setShowLoggerId&unscoped_q=setShowLoggerId">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#setShowLoggerId">[view on old javadoc]</a> <br> <br> <hr> <a name="setShowOnlyHighlited"></a> <h2>setShowOnlyHighlited</h2> setShowOnlyHighlited( boolean showOnlyHighlited ) → void <p></p> <h3>Parameters</h3> showOnlyHighlited - a boolean <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setShowOnlyHighlited&unscoped_q=setShowOnlyHighlited">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#setShowOnlyHighlited">[view on old javadoc]</a> <br> <br> <hr> <a name="setShowThreads"></a> <h2>setShowThreads</h2> setShowThreads( boolean selected ) → void <p></p> <h3>Parameters</h3> selected - a boolean <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setShowThreads&unscoped_q=setShowThreads">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#setShowThreads">[view on old javadoc]</a> <br> <br> <hr> <a name="setShowTimeStamps"></a> <h2>setShowTimeStamps</h2> setShowTimeStamps( boolean selected ) → void <p></p> <h3>Parameters</h3> selected - a boolean <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setShowTimeStamps&unscoped_q=setShowTimeStamps">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#setShowTimeStamps">[view on old javadoc]</a> <br> <br> <hr> <a name="turnOffConsoleHandlers"></a> <h2>turnOffConsoleHandlers</h2> turnOffConsoleHandlers( ) → void <p>iterate through the Handlers, looking for ConsoleHandlers, and turning them off.</p> <h3>Returns:</h3> void (returns nothing) <h3>See Also:</h3> <a href='null'>logConsoleMessages</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=turnOffConsoleHandlers&unscoped_q=turnOffConsoleHandlers">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#turnOffConsoleHandlers">[view on old javadoc]</a> <br> <br> <hr> <a name="undoLogConsoleMessages"></a> <h2>undoLogConsoleMessages</h2> undoLogConsoleMessages( ) → void <p>remove this hook for listening to stdout and stderr messages.</p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=undoLogConsoleMessages&unscoped_q=undoLogConsoleMessages">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#undoLogConsoleMessages">[view on old javadoc]</a> <br> <br> <hr> <a name="update"></a> <h2>update</h2> update( ) → void <p>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!</p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=update&unscoped_q=update">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/scriptconsole/LogConsole.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/scriptconsole/LogConsole.html#update">[view on old javadoc]</a> <br> <br>