IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.base
Class BTTLogToDisplayImp

java.lang.Object
  extended by com.ibm.btt.base.BTTLogToDisplayImp
All Implemented Interfaces:
BTTLog

public class BTTLogToDisplayImp
extends java.lang.Object
implements BTTLog

BTT Log implementation for Trace to Display using original architecture.


Field Summary
(package private)  TraceRequester componentConfig
           
(package private)  java.lang.String componentID
           
 
Constructor Summary
BTTLogToDisplayImp(java.lang.String component, TraceRequester request)
          Constructor of BTTLog
 
Method Summary
 void debug(java.lang.String msg)
          Write message of DEBUG level to trace targets.
 void debug(java.lang.String msg, java.lang.Throwable exception)
          Write message and exception stack trace of DEBUG level to trace targets.
 void debug(java.lang.String msg, java.lang.Throwable exception, java.lang.Object[] obj)
          Write message, exception stack trace and object information of DEBUG level to trace targets.
 boolean doDebug()
          Check if a message of the DEBUG level is enabled to be logged to trace target according to BTT trace configuration in btt.xml.
 boolean doError()
          Check if a message of the ERROR level is enabled to be logged to trace target according to BTT trace configuration in btt.xml.
 boolean doFatal()
          Check if a message of the FATAL level is enabled to be logged to trace target according to BTT trace configuration in btt.xml.
 boolean doInfo()
          Check if a message of the INFO level is enabled to be logged to trace target according to BTT trace configuration in btt.xml.
 boolean doWarn()
          Check if a message of the WARN level is enabled to be logged to trace target according to BTT trace configuration in btt.xml.
 void entry()
          Write method entry message of DEBUG level to trace targets.
 void entry(java.lang.String methodName)
          Write method entry message of DEBUG level to trace targets.
 void entry(java.lang.String className, java.lang.String methodName)
          Write method entry message of DEBUG level to trace targets.
 void error(java.lang.String msg)
          Write message of ERROR level to trace targets.
 void error(java.lang.String msg, java.lang.Throwable exception)
          Write message and exception stack trace of ERROR level to trace targets.
 void error(java.lang.String msg, java.lang.Throwable exception, java.lang.Object[] obj)
          Write message, exception stack trace and object information of ERROR level to trace targets.
 void exit()
          Write method exit message of DEBUG level to trace targets.
 void exit(java.lang.String methodName)
          Write method exit message of DEBUG level to trace targets.
 void exit(java.lang.String className, java.lang.String methodName)
          Write method exit message of DEBUG level to trace targets.
 void fatal(java.lang.String msg)
          Write message of FATAL level to trace targets.
 void fatal(java.lang.String msg, java.lang.Throwable exception)
          Write message and exception stack trace of FATAL level to trace targets.
 void fatal(java.lang.String msg, java.lang.Throwable exception, java.lang.Object[] obj)
          Write message, exception stack trace and object information of FATAL level to trace targets.
 void info(java.lang.String msg)
          Write message of INFO level to trace targets.
 void info(java.lang.String msg, java.lang.Throwable exception)
          Write message and exception stack trace of INFO level to trace targets.
 void info(java.lang.String msg, java.lang.Throwable exception, java.lang.Object[] obj)
          Write message, exception stack trace and object information of INFO level to trace targets.
 void warn(java.lang.String msg)
          Write message of WARN level to trace targets.
 void warn(java.lang.String msg, java.lang.Throwable exception)
          Write message and exception stack trace of WARN level to trace targets.
 void warn(java.lang.String msg, java.lang.Throwable exception, java.lang.Object[] obj)
          Write message, exception stack trace and object information of WARN level to trace targets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentConfig

TraceRequester componentConfig

componentID

java.lang.String componentID
Constructor Detail

BTTLogToDisplayImp

public BTTLogToDisplayImp(java.lang.String component,
                          TraceRequester request)
Constructor of BTTLog

Parameters:
component - Component ID
request - trace setting of the component defined in btt.xml
Method Detail

doDebug

public boolean doDebug()
Check if a message of the DEBUG level is enabled to be logged to trace target according to BTT trace configuration in btt.xml. This API only check from BTT trace perspective, it does not check the configuration WAS trace or Common-Logging.

Specified by:
doDebug in interface BTTLog
Returns:
true if the message of DEBUG level is currently enabled by BTT trace configuration.

doInfo

public boolean doInfo()
Check if a message of the INFO level is enabled to be logged to trace target according to BTT trace configuration in btt.xml. This API only check from BTT trace perspective, it does not check the configuration WAS trace or Common-Logging.

Specified by:
doInfo in interface BTTLog
Returns:
true if the message of INFO level is currently enabled by BTT trace configuration.

doWarn

public boolean doWarn()
Check if a message of the WARN level is enabled to be logged to trace target according to BTT trace configuration in btt.xml. This API only check from BTT trace perspective, it does not check the configuration WAS trace or Common-Logging.

Specified by:
doWarn in interface BTTLog
Returns:
true if the message of WARN level is currently enabled by BTT trace configuration.

doError

public boolean doError()
Check if a message of the ERROR level is enabled to be logged to trace target according to BTT trace configuration in btt.xml. This API only check from BTT trace perspective, it does not check the configuration WAS trace or Common-Logging.

Specified by:
doError in interface BTTLog
Returns:
true if the message of ERROR level is currently enabled by BTT trace configuration.

doFatal

public boolean doFatal()
Check if a message of the FATAL level is enabled to be logged to trace target according to BTT trace configuration in btt.xml. This API only check from BTT trace perspective, it does not check the configuration WAS trace or Common-Logging.

Specified by:
doFatal in interface BTTLog
Returns:
true if the message of FATAL level is currently enabled by BTT trace configuration.

debug

public void debug(java.lang.String msg)
Write message of DEBUG level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the DEBUG level is enabled by configuration of trace targets.

Specified by:
debug in interface BTTLog
Parameters:
msg - trace message

debug

public void debug(java.lang.String msg,
                  java.lang.Throwable exception)
Write message and exception stack trace of DEBUG level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the DEBUG level is enabled by configuration of trace targets.

Specified by:
debug in interface BTTLog
Parameters:
msg - trace message
exception - exception to be traced

debug

public void debug(java.lang.String msg,
                  java.lang.Throwable exception,
                  java.lang.Object[] obj)
Write message, exception stack trace and object information of DEBUG level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the DEBUG level is enabled by configuration of trace targets. The object.toString() information will be recorded for the objects in object array.

Specified by:
debug in interface BTTLog
Parameters:
msg - trace message
exception - exception to be traced
obj - object array

info

public void info(java.lang.String msg)
Write message of INFO level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the INFO level is enabled by configuration of trace targets.

Specified by:
info in interface BTTLog
Parameters:
msg - trace message

info

public void info(java.lang.String msg,
                 java.lang.Throwable exception)
Write message and exception stack trace of INFO level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the INFO level is enabled by configuration of trace targets.

Specified by:
info in interface BTTLog
Parameters:
msg - trace message
exception - exception to be traced

info

public void info(java.lang.String msg,
                 java.lang.Throwable exception,
                 java.lang.Object[] obj)
Write message, exception stack trace and object information of INFO level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the INFO level is enabled by configuration of trace targets. The object.toString() information will be recorded for the objects in object array.

Specified by:
info in interface BTTLog
Parameters:
msg - trace message
exception - exception to be traced
obj - object array

warn

public void warn(java.lang.String msg)
Write message of WARN level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the WARN level is enabled by configuration of trace targets.

Specified by:
warn in interface BTTLog
Parameters:
msg - trace message

warn

public void warn(java.lang.String msg,
                 java.lang.Throwable exception)
Write message and exception stack trace of WARN level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the WARN level is enabled by configuration of trace targets.

Specified by:
warn in interface BTTLog
Parameters:
msg - trace message
exception - exception to be traced

warn

public void warn(java.lang.String msg,
                 java.lang.Throwable exception,
                 java.lang.Object[] obj)
Write message, exception stack trace and object information of WARN level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the WARN level is enabled by configuration of trace targets. The object.toString() information will be recorded for the objects in object array.

Specified by:
warn in interface BTTLog
Parameters:
msg - trace message
exception - exception to be traced
obj - object array

error

public void error(java.lang.String msg)
Write message of ERROR level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the ERROR level is enabled by configuration of trace targets.

Specified by:
error in interface BTTLog
Parameters:
msg - trace message

error

public void error(java.lang.String msg,
                  java.lang.Throwable exception)
Write message and exception stack trace of ERROR level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the ERROR level is enabled by configuration of trace targets.

Specified by:
error in interface BTTLog
Parameters:
msg - trace message
exception - exception to be traced

error

public void error(java.lang.String msg,
                  java.lang.Throwable exception,
                  java.lang.Object[] obj)
Write message, exception stack trace and object information of ERROR level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the ERROR level is enabled by configuration of trace targets. The object.toString() information will be recorded for the objects in object array.

Specified by:
error in interface BTTLog
Parameters:
msg - trace message
exception - exception to be traced
obj - object array

fatal

public void fatal(java.lang.String msg)
Write message of FATAL level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the FATAL level is enabled by configuration of trace targets.

Specified by:
fatal in interface BTTLog
Parameters:
msg - trace message

fatal

public void fatal(java.lang.String msg,
                  java.lang.Throwable exception)
Write message and exception stack trace of FATAL level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the FATAL level is enabled by configuration of trace targets.

Specified by:
fatal in interface BTTLog
Parameters:
msg - trace message
exception - exception to be traced

fatal

public void fatal(java.lang.String msg,
                  java.lang.Throwable exception,
                  java.lang.Object[] obj)
Write message, exception stack trace and object information of FATAL level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the FATAL level is enabled by configuration of trace targets. The object.toString() information will be recorded for the objects in object array.

Specified by:
fatal in interface BTTLog
Parameters:
msg - trace message
exception - exception to be traced
obj - object array

entry

public void entry()
Write method entry message of DEBUG level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the DEBUG level is enabled by configuration of trace targets.

Specified by:
entry in interface BTTLog
Parameters:
msg - trace message

exit

public void exit()
Write method exit message of DEBUG level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the DEBUG level is enabled by configuration of trace targets.

Specified by:
exit in interface BTTLog
Parameters:
msg - trace message

entry

public void entry(java.lang.String className,
                  java.lang.String methodName)
Write method entry message of DEBUG level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the DEBUG level is enabled by configuration of trace targets.

Parameters:
className -
methodName -

entry

public void entry(java.lang.String methodName)
Write method entry message of DEBUG level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the DEBUG level is enabled by configuration of trace targets.

Parameters:
methodName -

exit

public void exit(java.lang.String className,
                 java.lang.String methodName)
Write method exit message of DEBUG level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the DEBUG level is enabled by configuration of trace targets.

Parameters:
className -
methodName -

exit

public void exit(java.lang.String methodName)
Write method exit message of DEBUG level to trace targets. For traceToWAs and traceToCommonLogging targets, if the trace message is recorded to targets finally depends on whether the DEBUG level is enabled by configuration of trace targets.

Parameters:
methodName -

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010