Package elki.logging

Class ELKILogRecord

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ProgressLogRecord

    public class ELKILogRecord
    extends java.util.logging.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.
    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 UID
      private 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
      • 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 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.
    • Constructor Detail

      • ELKILogRecord

        public ELKILogRecord​(java.util.logging.Level level,
                             java.lang.CharSequence msg)
        Constructor.
        Parameters:
        level - Message level
        msg - Message contents.
    • Method Detail

      • getSourceClassName

        public java.lang.String getSourceClassName()
        Overrides:
        getSourceClassName in class java.util.logging.LogRecord
      • setSourceClassName

        public void setSourceClassName​(java.lang.String sourceClassName)
        Overrides:
        setSourceClassName in class java.util.logging.LogRecord
      • getSourceMethodName

        public java.lang.String getSourceMethodName()
        Overrides:
        getSourceMethodName in class java.util.logging.LogRecord
      • setSourceMethodName

        public void setSourceMethodName​(java.lang.String sourceMethodName)
        Overrides:
        setSourceMethodName in class java.util.logging.LogRecord
      • inferCallerELKI

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