Configure tracing and logging for the loading utilities
In addition to the individual logs for some of the loading utilities, you can configure an additional message log file and a trace file for the loading utilities. You can configure the location of the loading utilities message log and trace files and their contents by editing the WCALoggerConfig.xml file.
To configure additional tracing and logging for the loading utilities:
- Open the following in a text editor:
- WC_installdir/xml/loader/WCALoggerConfig.xml
- WCDE_installdir/conf/xml/loader/WCALoggerConfig.xml
- Modify the contents of the file as follows:
- Define the parameters for tracing:
The trace tag defines the following information about the loading utilities trace file:
- The traceFile attribute defines the full path (including the trace file name) to the trace file.
- The enable attribute indicates if tracing is enabled (enable="true") or disabled (enable="false").
- The fileSize attribute specifies the maximum size of the trace file, in kilobytes. The default value is 1024. Once the trace file size is exceeded a new trace file is started. The old trace file is backed up with a time stamp value added to the trace file name.
- The component tags define the components for which trace is enabled. If a component is not listed or a component tag is commented out in the file, trace information will not be gathered for that component. The following table lists components for each loading utilities utility:
The default location for the trace file is:
Loading utilities utility Trace component name dtdgen COMPONENT_DTDGEN fileloader COMPONENT_ATTACHMENT idresgen COMPONENT_IDRESGEN massextract COMPONENT_MASSEXTRACT massload COMPONENT_MASSLOAD xmltransform COMPONENT_XMLTRANS
- (AIX)(Linux)(Solaris)(Windows)WC_installdir/logs/trace.txt
- (i5/OS)WC_userdir/instances/instance/logs/trace.txt
- WCDE_installdir/logs/trace.txt
- Define the parameters for logging:
The messageLog tag defines the following information about the loading utilities log file:
- The messageFile attribute defines the full path (including log file name) to the log file.
- The enable attribute indicates if logging is enabled (enable="true") or disabled (enable="false").
- The fileSize attribute specifies the maximum size of the log file, in kilobytes. The default value is 1024. Once the log file size is exceeded, the log file is overwritten from the start of the trace file.
- The logSeverity tags define the types of messages to write to the log file. If a message type is not listed or a logServerity tag is commented out, those message types are not recorded in the log file. The following table lists message types that can be logged:
By default, only error messages are written to the message log file.
logSeverity type Description INFO Information messages follow events that occur while the loading utilities run. Information messages are related to events that trigger changes in the system state. WARNING Warning messages reveal a potential problem. ERROR Error messages expose an error condition that can lead to system malfunction. The default location for the message log file is:
- (AIX)(Linux)(Solaris)(Windows)WC_installdir/logs/messages.txt
- (i5/OS)WC_userdir/instances/instance/logs/messages.txt
- WCDE_installdir/logs/messages.txt
- Save your changes.
- Ensure that the full path to WCALoggerConfig.xml is defined as part of the CLASSPATH environment variable before running any of the loading utilities.
Related concepts
Related tasks
Related reference