|
|
|||||||||||||||||||||
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.
Provides method implementations of theLoggable
interface.
Field Summary | |
---|---|
protected boolean |
debug
Holds the class specific debug status. |
private Logger |
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 message. |
private String |
inferCaller(String className)
|
void |
message(String msg)
Log a message with Level MESSAGE. |
void |
progress(LogRecord record)
Log a PROGRESS message. |
void |
progress(Progress pgr)
Log a PROGRESS message. |
void |
progress(Progress pgr,
int numClusters)
Log a PROGRESS message. |
void |
verbose()
Log an empty VERBOSE 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
private final Logger logger
Constructor Detail |
---|
protected AbstractLoggable(boolean debug)
debug
- the debug status.protected AbstractLoggable(boolean debug, String name)
debug
- the debub status.name
- the name of the logger.Method Detail |
---|
public void exception(String msg, Throwable e)
exception
in interface Loggable
msg
- The String messageLoggable.exception(String, Throwable)
public void warning(String msg)
warning
in interface Loggable
msg
- The String messageLoggable.warning(String)
public void message(String msg)
message
in interface Loggable
msg
- The String messageLoggable.message(String)
public void progress(Progress pgr)
progress
in interface Loggable
pgr
- The Progress to be logged.Loggable.progress(de.lmu.ifi.dbs.elki.utilities.Progress)
public void progress(Progress pgr, int numClusters)
pgr
- The Progress to be logged.numClusters
- The current number of clustersLoggable.progress(de.lmu.ifi.dbs.elki.utilities.Progress)
public void progress(LogRecord record)
progress
in interface Loggable
record
- the log record to be loggedLoggable.progress(java.util.logging.LogRecord)
public void verbose(String msg)
verbose
in interface Loggable
msg
- The string messageLoggable.verbose(String)
public void verbose()
verbose
in interface Loggable
verbose(String)
public void debugFine(String msg)
debugFine
in interface Loggable
msg
- The string messageLoggable.debugFine(String)
public void debugFiner(String msg)
debugFiner
in interface Loggable
msg
- The string messageLoggable.debugFiner(String)
public void debugFinest(String msg)
debugFinest
in interface Loggable
msg
- The string messageLoggable.debugFinest(String)
private String inferCaller(String className)
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |