com.ibm.websphere.ras

Class TraceComponent

  1. java.lang.Object
  2. extended bycom.ibm.websphere.ras.TraceComponent
All implemented interfaces:
FFDCSelfIntrospectable

  1. public class TraceComponent
  2. extends java.lang.Object
  3. implements FFDCSelfIntrospectable
A TraceComponent represents a single component registered for logging. The scoping of the component is arbitrary in that it may represent a single class or it could be shared by several classes.

A TraceComponent should be registered with Tr using a class to assist in finding the associated ResourceBundle for messages. It may have an additional name and one or more groups. The log level for any given component is controlled by a match in the trace specification for the class (including package), name, or trace group.


Method Summary

Modifier and Type Method and Description
  1. java.util.logging.Logger
getLogger()
  1. java.util.logging.Level
getLoggerLevel()
  1. java.lang.String
getName()
  1. java.lang.String
getResourceBundleName()
  1. java.lang.Class<?>
getTraceClass()
  1. java.lang.String[]
introspectSelf()
  1. static
  2. boolean
isAnyTracingEnabled()
  1. boolean
isAuditEnabled()
  1. boolean
isConfigEnabled()
  1. boolean
isDebugEnabled()
  1. boolean
isDetailEnabled()
  1. boolean
isDumpEnabled()
  1. boolean
isEntryEnabled()
  1. boolean
isErrorEnabled()
  1. boolean
isEventEnabled()
  1. boolean
isFatalEnabled()
  1. boolean
isInfoEnabled()
  1. boolean
isServiceEnabled()
  1. boolean
isWarningEnabled()
  1. void
setLoggerForCallback(TraceStateChangeListener listener)
  1. java.lang.String
toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Method Detail

isAnyTracingEnabled

  1. public static boolean isAnyTracingEnabled( )

getTraceClass

  1. public java.lang.Class<?> getTraceClass( )

getLogger

  1. public java.util.logging.Logger getLogger( )

isDumpEnabled

  1. public final boolean isDumpEnabled( )

getResourceBundleName

  1. public final java.lang.String getResourceBundleName( )

setLoggerForCallback

  1. public final void setLoggerForCallback( TraceStateChangeListener listener)

getName

  1. public final java.lang.String getName( )

isDebugEnabled

  1. public final boolean isDebugEnabled( )

isEntryEnabled

  1. public final boolean isEntryEnabled( )

isEventEnabled

  1. public final boolean isEventEnabled( )

isDetailEnabled

  1. public final boolean isDetailEnabled( )

isConfigEnabled

  1. public final boolean isConfigEnabled( )

isInfoEnabled

  1. public final boolean isInfoEnabled( )

isAuditEnabled

  1. public final boolean isAuditEnabled( )

isWarningEnabled

  1. public final boolean isWarningEnabled( )

isErrorEnabled

  1. public final boolean isErrorEnabled( )

isFatalEnabled

  1. public final boolean isFatalEnabled( )

isServiceEnabled

  1. public final boolean isServiceEnabled( )

getLoggerLevel

  1. public final java.util.logging.Level getLoggerLevel( )

introspectSelf

  1. public java.lang.String[] introspectSelf( )
Description copied from interface: FFDCSelfIntrospectable
Returns String representation(s) of the object's state.

Implementation of this method should return a String[]. For example:

public String[] introspectSelf() { StringBuffer introspectBuffer = new StringBuffer(); String[] returnValue = new String[2]; introspectBuffer.append("variableName1 = "); introspectBuffer.append(variableName1); returnValue[0] = new String(introspectBuffer); introspectBuffer.setLength(0); introspectBuffer.append("variableName2 = "); introspectBuffer.append(variableName2); returnValue[1] = new String(introspectBuffer); return returnValue; }

Specified by:
Returns:
an array of Strings representing the instance variables of this object that do not contain sensitive data.

toString

  1. public java.lang.String toString( )
Overrides:
toString in class java.lang.Object