IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.base
Class BTTLogToWASImpl

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

public class BTTLogToWASImpl
extends java.lang.Object
implements BTTLog

This class provides the main new trace APIs. Log instance is used to determine if trace is enabled by BTT trace configuration. It is also used to record trace messages.


Constructor Summary
BTTLogToWASImpl(java.util.logging.Logger wasLog, boolean showThreadName)
          Constructor for BTTLogFactory
 
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[] objs)
          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 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[] objs)
          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 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[] objs)
          Write message, exception stack trace and object information of FATAL level to trace targets.
protected  java.lang.String getFullPackageClassName()
          Gets the full package and class name of the class that called any method in this class.
 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[] objs)
          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[] objs)
          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
 

Constructor Detail

BTTLogToWASImpl

public BTTLogToWASImpl(java.util.logging.Logger wasLog,
                       boolean showThreadName)
Constructor for BTTLogFactory

Parameters:
wasLog -
showThreadName -
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[] objs)
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
objs - 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[] objs)
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
objs - 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[] objs)
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
objs - 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[] objs)
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
objs - 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[] objs)
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
objs - 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 -

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 -

getFullPackageClassName

protected java.lang.String getFullPackageClassName()
Gets the full package and class name of the class that called any method in this class.

Returns:
the full package and class name of the calling class.

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011