public class ELKILogRecord extends LogRecord
LogRecord
class used in ELKI.
In contrast to the 'original' LogRecord class, this class will ignore
additional classes when determining the 'origin' of a log message.Modifier and Type | Field and Description |
---|---|
static String[] |
IGNORE_CLASSES
Classes to ignore when finding the relevant caller.
|
private boolean |
needToInferCaller
Flag whether we still need to infer the caller.
|
private static long |
serialVersionUID
Serial Version UID
|
private static String |
START_TRACE_AT
Name of this class.
|
Constructor and Description |
---|
ELKILogRecord(Level level,
CharSequence msg)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getSourceClassName() |
String |
getSourceMethodName() |
private void |
inferCallerELKI()
Infer a caller, ignoring logging-related classes.
|
void |
setSourceClassName(String sourceClassName) |
void |
setSourceMethodName(String sourceMethodName) |
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getThreadID, getThrown, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setThreadID, setThrown
private static final long serialVersionUID
private transient boolean needToInferCaller
public static final String[] IGNORE_CLASSES
private static final String START_TRACE_AT
public ELKILogRecord(Level level, CharSequence msg)
level
- Message levelmsg
- Message contents.public String getSourceClassName()
getSourceClassName
in class LogRecord
public void setSourceClassName(String sourceClassName)
setSourceClassName
in class LogRecord
public String getSourceMethodName()
getSourceMethodName
in class LogRecord
public void setSourceMethodName(String sourceMethodName)
setSourceMethodName
in class LogRecord
private final void inferCallerELKI()