|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LogModel
A "model" implementation for logging levels and debug verbosity.
The Log and Debug
provide a framework for controlling what type of log messages are
produced by a system and the verbosity of the debug output of these
messages.
The messages are typically produced at run time and are very useful when trouble shooting an application.
This interface defines the methods which a GUI implementation that wish to adjust these levels should work with (or a corresponding logging mechanism may want to deal with).
To see a working example of using the LogModel,
DefaultLogModel, SystemLogModel and LogEditor objects in
combination, take a look at LogTest.java.
LogEditor| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener cl)
Adds a ChangeListener to be notified when
the state changes. |
int |
getDebugLevel()
Get the current debug
level for debug messages. |
int |
getLogLevel()
Get the current log level for
logged messages. |
void |
removeChangeListener(ChangeListener cl)
Removes a ChangeListener that was
previously registered. |
void |
setDebugLevel(int val)
Set the current debug
level for debug messages. |
void |
setLogLevel(int val)
Set the current log level for
logged messages. |
| Method Detail |
|---|
void setLogLevel(int val)
log level for
logged messages.
Note, if you attempt to set a invalid value, it will be silently ignored.
val - New int value to assign.getLogLevel()int getLogLevel()
log level for
logged messages.
setLogLevel(int)void setDebugLevel(int val)
debug
level for debug messages.
Note, if you attempt to set a invalid value, it will be silently ignored.
val - New int value to assign.getDebugLevel()int getDebugLevel()
debug
level for debug messages.
setDebugLevel(int)void addChangeListener(ChangeListener cl)
ChangeListener to be notified when
the state changes.
cl - The change listener to be added (must not be null).void removeChangeListener(ChangeListener cl)
ChangeListener that was
previously registered.
cl - The change listener to be removed (must not be null).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||