|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectimx.loggui.LogMaster
public final class LogMaster
This is the main class of the logGui. LogMaster contains the configuration of the logGui.
It is implemented as a singleton,
and is the logGui correspondent to the LogManager.
It provides the methods to start the logGui and to configure it.
The simplest way to do this is by calling startLogGui()
| Field Summary | |
|---|---|
ActiveClassMap |
classViews
Here you can register for each object (logger, handler, filter, formatter) a view, so the logGui knows how to represent and edit it. |
ActiveArrayList |
filterCreatorSet
Contains all creators that will create a new filter, when selected. |
ActiveArrayList |
filterSet
Contains all filter, that can be selected for a logger or handler. |
ActiveArrayList |
formatterCreatorSet
contains all creators that will create a new formatter, when selected. |
ActiveArrayList |
formatterSet
Contains all formatter, that can be selected for a handler. |
ActiveArrayList |
handlerCreatorSet
contains all creators that will create a new handler, when selected. |
ActiveArrayList |
handlerSet
Use the static final public Active... variables to register listeners if you want to know, when somebody changes them. |
ActiveArrayList |
levelSet
Contains all levels, that can be selected for a logger or handler. |
static java.lang.String |
NAME
|
static java.lang.String |
VERSION
|
| Method Summary | |
|---|---|
void |
addFilter(java.util.logging.Filter filter)
Registers a new filter in the filter selection and configuration list. |
void |
addFilterCreator(CreatorInterface filterCreator)
Registers a new filter Creator in the filter Creator selection list. |
void |
addFormatter(java.util.logging.Formatter formatter)
Registers a new formatter in the formatter selection and configuration list. |
void |
addFormatterCreator(CreatorInterface formatterCreator)
Registers a new formatter Creator in the formatter Creator selection list. |
void |
addHandler(java.util.logging.Handler handler)
Registers a new handler in the handler selection and configuration list. |
void |
addHandlerCreator(CreatorInterface handlerCreator)
Registers a new handler Creator in the handler Creator selection list. |
void |
addLoggerListener(ListenerInterface listener)
This listener will inform you, when the list of loggers has changed. |
void |
addView(java.lang.Class objectClass,
java.awt.Component view)
If you register a new handler, filter or formatter class, you would probably wish to be able to configure it with a view. |
void |
configClear()
Removes all handler, filter and formatter. |
void |
configDefault()
Configueres LogMaster to a default configuration. |
void |
configExternalLHFF()
Searches for external Levels, Handler, Filter and Formatters used by the loggers and includes them in the selection menues. |
static javax.swing.JFrame |
getLogFrame()
This function returns the getLogView() packed in an independent window, with additional menu. |
static LogMaster |
getLogMaster()
returns the LogMaster singleton. |
static javax.swing.JPanel |
getLogView()
This function returnes the logging configuration gui as a JPanel, so that you can incorporate it into your own programs. |
boolean |
isFillLoggerNodes()
If fillLoggerNodes is true, then additional loggers are created, so that the logger become a complete tree, where the loggers are grouped under their parent logger. |
void |
load(java.io.InputStream in)
Loads a configuration for this LogMaster from in. |
static void |
main(java.lang.String[] args)
|
void |
refresh()
Refreshes the list of loggers. |
void |
removeLoggerListener(ListenerInterface listener)
|
void |
save(java.io.OutputStream out)
Saves this LogMasters configuration to out. |
void |
setFillLoggerNodes(boolean b)
|
static void |
startLogGui()
configures and shows the logGui Window. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAME
public static final java.lang.String VERSION
public final ActiveArrayList handlerSet
public final ActiveArrayList handlerCreatorSet
public final ActiveArrayList filterSet
public final ActiveArrayList filterCreatorSet
public final ActiveArrayList formatterSet
public final ActiveArrayList formatterCreatorSet
public final ActiveArrayList levelSet
public final ActiveClassMap classViews
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static LogMaster getLogMaster()
public static void startLogGui()
public static javax.swing.JPanel getLogView()
public static javax.swing.JFrame getLogFrame()
getLogView()public void configDefault()
public void configExternalLHFF()
configDefault()
call configDefault() first.
public void configClear()
public void addLoggerListener(ListenerInterface listener)
refresh()public void removeLoggerListener(ListenerInterface listener)
public void addHandler(java.util.logging.Handler handler)
public void addHandlerCreator(CreatorInterface handlerCreator)
public void addFilter(java.util.logging.Filter filter)
public void addFilterCreator(CreatorInterface filterCreator)
public void addFormatter(java.util.logging.Formatter formatter)
public void addFormatterCreator(CreatorInterface formatterCreator)
public void addView(java.lang.Class objectClass,
java.awt.Component view)
objectClass - The class of objects, that view can configureview - The view that can represent and/or configure objectClass objectspublic boolean isFillLoggerNodes()
public void setFillLoggerNodes(boolean b)
isFillLoggerNodes()public void refresh()
LogManager.
public void save(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
public void load(java.io.InputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
in -
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||