com.ibm.streams.operator.logging

Class TraceLevel

  • java.lang.Object
    • java.util.logging.Level
      • com.ibm.streams.operator.logging.TraceLevel
  • All Implemented Interfaces:
    java.io.Serializable


    public class TraceLevel
    extends java.util.logging.Level
    Convenience class to provide SPL trace levels through the java.util.logging facility.
    The SPL trace levels in descending order are:
    When a message is logged to the SPL trace facility its java.util.logging.Level is mapped to the SPL trace level as follows:
    SPL trace level mapping
    SPL Trace Leveljava.util.logging.Level
    errorLevel.SEVERE
    ERROR
    >= 1000
    warnLevel.WARNING
    WARN
    >= 900 AND < 1000
    infoLevel.INFO
    Level.CONFIG
    INFO
    >= 700 AND < 900
    debugLevel.FINE
    Level.FINER
    DEBUG
    >= 400 AND < 700
    traceLevel.FINEST
    TRACE
    < 400
    Since:
    InfoSphere® Streams Version 3.0
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static TraceLevel DEBUG
      DEBUG is a message level for debug level tracing information including method entry, exit, and return values.
      static TraceLevel ERROR
      ERROR is a level indicating the operator cannot continue.
      static java.lang.String IBM_COPYRIGHT 
      static TraceLevel INFO
      INFO is level indicating general information outlining overall operator progress.
      static TraceLevel TRACE
      TRACE is a level for more detailed trace that includes all the detail that is needed to debug problems.
      static TraceLevel WARN
      WARN is a level indicating a potential error or impending error.
      • Fields inherited from class java.util.logging.Level

        ALL, CONFIG, FINE, FINER, FINEST, OFF, SEVERE, WARNING
    • Method Summary

      • Methods inherited from class java.util.logging.Level

        equals, getLocalizedName, getName, getResourceBundleName, hashCode, intValue, parse, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ERROR

        public static final TraceLevel ERROR
        ERROR is a level indicating the operator cannot continue. All internal or unexpected failures should be traced at this level. This level is initialized to 1000 and is equal to Level.SEVERE.
      • WARN

        public static final TraceLevel WARN
        WARN is a level indicating a potential error or impending error. This level can also indicate a progressive failure (for example, the potential leaking of resources). This level is initialized to 900 and is equal to Level.WARNING.
      • INFO

        public static final TraceLevel INFO
        INFO is level indicating general information outlining overall operator progress. Information that helps to give context to a trace, often when an operator is being initialized, handling allPortsReady() or being shutdown. This level is initialized to 700 and is equal to Level.CONFIG.
      • DEBUG

        public static final TraceLevel DEBUG
        DEBUG is a message level for debug level tracing information including method entry, exit, and return values. This level is initialized to 400 and is equal to Level.FINER.
      • TRACE

        public static final TraceLevel TRACE
        TRACE is a level for more detailed trace that includes all the detail that is needed to debug problems. This level is initialized to 300 and is equal to Level.FINEST.