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
- See Location of tracing configuration files.
- 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:
- Change
UTF8FILE to XMLFILE
- Change
msg__pdmgrd_utf8.log to msg__error.log
The following statement is the result of these changes:
ERROR:STDOUT:-;XMLFILE:msg__error.log
- 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.