|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
public abstract class AbstractLoggable
Abstract superclass for classes being loggable, i.e. classes intending to log messages.
Field Summary | |
---|---|
protected boolean |
debug
Holds the class specific debug status. |
protected Logging |
logger
The logger of the class. |
Constructor Summary | |
---|---|
protected |
AbstractLoggable(boolean debug)
Initializes the logger and sets the debug status to the given value. |
protected |
AbstractLoggable(boolean debug,
String name)
Initializes the logger with the given name and sets the debug status to the given value. |
Method Summary | |
---|---|
void |
debugFine(String msg)
Log a DEBUG_FINE message. |
void |
debugFiner(String msg)
Log a DEBUG_FINER message. |
void |
debugFinest(String msg)
Log a DEBUG_FINEST message. |
void |
exception(String msg,
Throwable e)
Log an exception at SEVERE level. |
void |
progress(Progress pgr)
Log a PROGRESS message. |
void |
verbose(String msg)
Log a VERBOSE message. |
void |
warning(String msg)
Log a WARNING message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean debug
protected final Logging logger
Constructor Detail |
---|
protected AbstractLoggable(boolean debug)
debug
- the debug status.protected AbstractLoggable(boolean debug, String name)
debug
- the debug status.name
- the name of the logger.Method Detail |
---|
public void exception(String msg, Throwable e)
msg
- e
- public void warning(String msg)
msg
- public void progress(Progress pgr)
pgr
- public void verbose(String msg)
msg
- public void debugFine(String msg)
if (logger.isDebugging()) { logger.debugFine(msg); }instead. If msg is a constant, you can leave away the if statement.
msg
- public void debugFiner(String msg)
if (logger.isDebuggingFiner()) { logger.debugFiner(msg); }instead. If msg is a constant, you can leave away the if statement.
msg
- public void debugFinest(String msg)
if (logger.isDebuggingFinest()) { logger.debugFinest(msg); }instead. If msg is a constant, you can leave away the if statement.
msg
-
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |