Package elki.logging
Class ELKILogRecord
- java.lang.Object
-
- java.util.logging.LogRecord
-
- elki.logging.ELKILogRecord
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ProgressLogRecord
public class ELKILogRecord extends java.util.logging.LogRecord
BaseLogRecord
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.- Since:
- 0.2
- Author:
- Erich Schubert
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.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 UIDprivate static java.lang.String
START_TRACE_AT
Name of this class.
-
Constructor Summary
Constructors Constructor Description ELKILogRecord(java.util.logging.Level level, java.lang.CharSequence msg)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSourceClassName()
java.lang.String
getSourceMethodName()
private void
inferCallerELKI()
Infer a caller, ignoring logging-related classes.void
setSourceClassName(java.lang.String sourceClassName)
void
setSourceMethodName(java.lang.String sourceMethodName)
-
Methods inherited from class java.util.logging.LogRecord
getInstant, getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getThreadID, getThrown, setInstant, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setThreadID, setThrown
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial Version UID- See Also:
- Constant Field Values
-
needToInferCaller
private transient boolean needToInferCaller
Flag whether we still need to infer the caller.
-
IGNORE_CLASSES
public static final java.lang.String[] IGNORE_CLASSES
Classes to ignore when finding the relevant caller.
-
START_TRACE_AT
private static final java.lang.String START_TRACE_AT
Name of this class.
-
-
Method Detail
-
getSourceClassName
public java.lang.String getSourceClassName()
- Overrides:
getSourceClassName
in classjava.util.logging.LogRecord
-
setSourceClassName
public void setSourceClassName(java.lang.String sourceClassName)
- Overrides:
setSourceClassName
in classjava.util.logging.LogRecord
-
getSourceMethodName
public java.lang.String getSourceMethodName()
- Overrides:
getSourceMethodName
in classjava.util.logging.LogRecord
-
setSourceMethodName
public void setSourceMethodName(java.lang.String sourceMethodName)
- Overrides:
setSourceMethodName
in classjava.util.logging.LogRecord
-
inferCallerELKI
private void inferCallerELKI()
Infer a caller, ignoring logging-related classes.
-
-