Changing the message format in log files

You can change the message format for a server-specific message log file.

About this task

To change the message format for a server-specific message log file, complete the following steps:

Procedure

  1. See Location of tracing configuration files.
  2. Find the statement that defines how to log messages of a specific severity. For example, find the ERROR statement in the routing file to change the logging of error messages. The ERROR statement might be similar to the following statement:
    ERROR:STDOUT:-;UTF8FILE:msg__pdmgrd_utf8.log
    For example, to log error messages in the XML format and to log these messages to the msg__error.log file, make the following changes:
    1. Change UTF8FILE to XMLFILE
    2. Change msg__pdmgrd_utf8.log to msg__error.log
    The following statement is the result of these changes:
    ERROR:STDOUT:-;XMLFILE:msg__error.log
    
  3. Save and exit the routing file.

Results

After this statement is changed, ERROR messages are written to the standard output device in ASCII text and written to the msg__error.log file in the XML format.