|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||||||||||||||
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()
Initializes the logger and sets the debug status to the given value. |
protected |
AbstractLoggable(boolean debug)
Initializes the logger and sets the debug status to the given value. |
protected |
AbstractLoggable(boolean debug,
String name)
Deprecated. |
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()
protected AbstractLoggable(boolean debug)
debug
- the debug status.@Deprecated 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)
If the logger is currently enabled for the SEVERE message level then the given message is forwarded to all the registered output Handler objects.
msg
- Messagee
- Exceptionpublic void warning(String msg)
If the logger is currently enabled for the WARNING message level then the given message is forwarded to all the registered output Handler objects.
msg
- Messagepublic void progress(Progress pgr)
If the logger is currently enabled for the PROGRESS message level then the given message is forwarded to all the registered output Handler objects.
pgr
- Progress recordpublic void verbose(String msg)
If the logger is currently enabled for the VERBOSE message level then the given message is forwarded to all the registered output Handler objects.
msg
- Messagepublic void debugFine(String msg)
If the logger is currently enabled for the DEBUG_FINE message level then the given message is forwarded to all the registered output Handler objects. Depreciated: Use
if (logger.isDebugging()) { logger.debugFine(msg); }instead. If msg is a constant, you can leave away the if statement.
msg
- Messagepublic void debugFiner(String msg)
If the logger is currently enabled for the DEBUG_FINER message level then the given message is forwarded to all the registered output Handler objects. Depreciated: Use
if (logger.isDebuggingFiner()) { logger.debugFiner(msg); }instead. If msg is a constant, you can leave away the if statement.
msg
- Messagepublic void debugFinest(String msg)
If the logger is currently enabled for the DEBUG_FINEST message level then the given message is forwarded to all the registered output Handler objects. Depreciated: Use
if (logger.isDebuggingFinest()) { logger.debugFinest(msg); }instead. If msg is a constant, you can leave away the if statement.
msg
- Message
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |