de.lmu.ifi.dbs.elki.logging
Class ELKILogRecord

java.lang.Object
  extended by java.util.logging.LogRecord
      extended by de.lmu.ifi.dbs.elki.logging.ELKILogRecord
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ProgressLogRecord

public class ELKILogRecord
extends LogRecord

Base 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.

See Also:
Serialized Form

Field Summary
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 Summary
ELKILogRecord(Level level, CharSequence msg)
          Constructor.
 
Method Summary
 String getSourceClassName()
           
 String getSourceMethodName()
           
private  void inferCallerELKI()
          Infer a caller, ignoring logging-related classes.
 void setSourceClassName(String sourceClassName)
           
 void setSourceMethodName(String sourceMethodName)
           
 
Methods inherited from class java.util.logging.LogRecord
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getThreadID, getThrown, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setThreadID, setThrown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 String[] IGNORE_CLASSES
Classes to ignore when finding the relevant caller.


START_TRACE_AT

private static final String START_TRACE_AT
Name of this class.

Constructor Detail

ELKILogRecord

public ELKILogRecord(Level level,
                     CharSequence msg)
Constructor.

Parameters:
level - Message level
msg - Message contents.
Method Detail

getSourceClassName

public String getSourceClassName()
Overrides:
getSourceClassName in class LogRecord

setSourceClassName

public void setSourceClassName(String sourceClassName)
Overrides:
setSourceClassName in class LogRecord

getSourceMethodName

public String getSourceMethodName()
Overrides:
getSourceMethodName in class LogRecord

setSourceMethodName

public void setSourceMethodName(String sourceMethodName)
Overrides:
setSourceMethodName in class LogRecord

inferCallerELKI

private final void inferCallerELKI()
Infer a caller, ignoring logging-related classes.


Release 0.4.0 (2011-09-20_1324)