|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.directj.jlogger.LogManager
|
+--net.directj.jlogger.JTextLogManager
This is a log manager that stored logging information onto a JPanel,
using a textual component.
To get this panel call the method getPanel.
It also contains GUI specific methods, like getText() or clearText(),
that allow you to directly manipulate the text into you're GUI, for exemple to save to the text
to a file or to print it.
| Field Summary | |
private static JTextOutput |
out
The GUI text output. |
| Fields inherited from class net.directj.jlogger.LogManager |
|
| Constructor Summary | |
JTextLogManager(int _level)
Creates a new JTextLogManager, with the specified logging level. |
|
JTextLogManager(int _level,
java.lang.String _pattern)
Creates a new JTextLogManager, with the specified logging level and formatting pattern. |
|
| Method Summary | |
java.lang.String |
getData()
Returns the log text. |
javax.swing.JPanel |
getPanel()
Returns the JPanel where data are stored. |
| Methods inherited from class net.directj.jlogger.LogManager |
equals, hashCode, log |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static JTextOutput out
| Constructor Detail |
public JTextLogManager(int _level)
_level - The logging level.
public JTextLogManager(int _level,
java.lang.String _pattern)
_level - The logging level._pattern - The pattern.Explanation about pattern.| Method Detail |
public javax.swing.JPanel getPanel()
javax.swing.JPanel - The GUI text element.public java.lang.String getData()
String - The log text.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||