|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.util.JLogoutputFrame
public class JLogoutputFrame
A standalone window for receiving and displaying log outputs
Singleton pattern
The original version deferred initialization onto the Swing thread; this version does it inline, and must be invoked from the Swing thread.
The Frame and the appender are not shown by initializing it but only made ready to receive all log output. It can later be set to visible if desired. TODO: implement also a enable() and disable() method in order to have a minimal impact on performance if not used.
| Method Summary | |
|---|---|
static void |
addFilter(Filter aFilter)
|
JTextPaneAppender |
createAppender(JTextPane aTextPane)
Creates the appender and adds it to all known Loggers whose additivity flag is false, incl. root logger |
static Vector<Filter> |
getFilters()
|
static JLogoutputFrame |
getInstance()
Retrieves the singleton instance |
static Layout |
getLayout()
|
JFrame |
getMainFrame()
|
void |
log(Level aLevel,
String aMsg)
Outputs a message only to the appender which belongs to this frame |
static void |
setFilters(Vector<Filter> aFilters)
|
static void |
setMyPatternLayout(Layout aLayout)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JLogoutputFrame getInstance()
public void log(Level aLevel,
String aMsg)
aLevel - aMsg - public JTextPaneAppender createAppender(JTextPane aTextPane)
aTextPane -
public JFrame getMainFrame()
public static Layout getLayout()
public static void setMyPatternLayout(Layout aLayout)
aLayout - the Layout to setpublic static Vector<Filter> getFilters()
public static void setFilters(Vector<Filter> aFilters)
aFilters - the Filters to setpublic static void addFilter(Filter aFilter)
aFilter - the Filter to be added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||