Log Formatter Tool for Db2 Text Search

Db2 Text Search logs system messages and trace messages to help you determine the source of problems that might occur. Server logs that were created with Db2 Version 9.7 Fix Pack 3 and earlier can be viewed and saved with the Log Formatter tool. Server logs that were created with Db2 Version 9.7 Fix Pack 4 can be viewed without the tool.

The server logs are located in the INSTALL_HOME/log directory. By default, the trace log is turned off, and the system log level is set to SEVERE. The server logs are rotated, meaning that after a log file contains 10 MB of data, a new generation of the log file is created. At any given time, a maximum of five generations of log files are kept on the system.

Tool syntax

Read syntax diagramSkip visual syntax diagramlogformatter-flog-file-llocale-ooutput-file-v

Parameters

logformatter
Enables server log viewing or saving.
-f log-file
Specifies the server log file that you want to format.
-l locale
Specifies the five-character locale for writing the reformatted log messages. The default is en_US.
-o output-file
Specifies the output file where the reformatted log messages are to be written by using UTF-8 encoding. If you do not specify this option, a standard output file is used.
-v
Specifies that debugging messages are to be written in verbose mode.
-?
Prints the help message.