net.directj.jlogger
Class JTextLogManager

java.lang.Object
  |
  +--net.directj.jlogger.LogManager
        |
        +--net.directj.jlogger.JTextLogManager

public class JTextLogManager
extends LogManager

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.

Version:
0.1.0
Author:
CARTAPANIS Alexandre <earendil@jprolog.net>

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

out

private static JTextOutput out
The GUI text output.

Constructor Detail

JTextLogManager

public JTextLogManager(int _level)
Creates a new JTextLogManager, with the specified logging level.

Parameters:
_level - The logging level.

JTextLogManager

public JTextLogManager(int _level,
                       java.lang.String _pattern)
Creates a new JTextLogManager, with the specified logging level and formatting pattern.

Parameters:
_level - The logging level.
_pattern - The pattern.
See Also:
Explanation about pattern.
Method Detail

getPanel

public javax.swing.JPanel getPanel()
Returns the JPanel where data are stored.

Returns:
javax.swing.JPanel - The GUI text element.

getData

public java.lang.String getData()
Returns the log text.

Returns:
String - The log text.


Copyright © 2002 CARTAPANIS Alexandre
This page was last updated on May 10 2003