This class is responsible for initializing all trace configurations. The class is packaged in bttcore.jar.
This class defines that the Trace to WAS type is selected. The traceTargetFactoryImplClass defines the specific trace implement class. By default, there are four different trace types provided by BTT:
<field id="traceTargetFactoryImplClass" value="com.ibm.btt.base.BTTLogFactoryToFileOrConsoleImp"/> <field id="traceFileName_WhenTraceToFile" value="c:\bttlog.txt"/>
The trace type is defined to Trace to File. The configuration item traceFileName_WhenTraceToFile defines the file name and location of the file when tracing. Absolute path is required.
<field id="traceTargetFactoryImplClass" value="com.ibm.btt.base.BTTLogFactoryToCommonLoggingImp"/>
The trace type is defined to Trace to Common Logging. The package of the common logging is required for the project, such as log4j.jar.
<field id="traceTargetFactoryImplClass" value="com.ibm.btt.base.BTTLogFactoryToDisplayImp"/> <field id="font" value="monospaced"/> <field id="displayNumberOfLines" value="2000"/> <field id="linesOfBuffer" value="7000"/> <field id="lineLength" value="200"/>
The trace type is defined to Trace to Display.
The suggested mode is by package. The tag traceRequester is the definition keyword for each traced package. The tag id defines the package to be traced. The tag traceLevels defines the specific trace level of this package.
The compatible mode is by component. The tag traceRequester is the definition keyword for each traced component. The tag id defines the component to be traced. The tag traceLevels is for the specific trace level of this component.