|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Handler
org.csstudio.logging.ui.ConsoleViewHandler
public class ConsoleViewHandler
Log handler that displays messages in the Eclipse Console view.
Method Summary | |
---|---|
static void |
addToLogger()
Add console view to the (root) logger. |
void |
close()
Usually called by JRE when Logger shuts down, i.e. |
void |
flush()
|
void |
publish(java.util.logging.LogRecord record)
|
Methods inherited from class java.util.logging.Handler |
---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addToLogger()
To be called from Eclipse application's
WorkbenchWindowAdvisor.postWindowCreate()
.
Calling it earlier is not possible because the necessary
console view infrastructure is not available, yet.
Calling it much later means log messages are lost.
Only the first call has an effect. Subsequent calls as they can happen when opening multiple windows of the same Eclipse instance will have no effect.
public void publish(java.util.logging.LogRecord record)
publish
in class java.util.logging.Handler
public void flush()
flush
in class java.util.logging.Handler
public void close() throws java.lang.SecurityException
close
in class java.util.logging.Handler
java.lang.SecurityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |