Changing the message IDs used in log files
You can change the default format for message IDs in server logs by setting the com.ibm.websphere.logging.messageId.version system property.
Before you begin
不推荐使用的功能部件: Beginning with WebSphere® Application
Server Version 6.0, logging files are formatted according to a standardized
system. However, the default runtime behavior is still configured
to use the older format. In new releases of WebSphere Application
Server, the message IDs that are written to log files will be changed
to ensure they do not conflict with other IBM® products.
The default runtime behavior is still configured to use the older
message IDs, deprecated in V9.0.As a result of the default runtime behavior, you might see a mixture of messages that use 4–letter message prefixes and 5–letter message prefixes. The information in this topic explains how to change your configuration so that the messages consistently show with 5–letter message prefixes. The default behavior has not changed to minimize the impact on customers that depend on the existence of the 4–letter message prefixes.
depfeatThe following is a sample of an
entry in a trace.log file using a default message ID. Note that the
message ID is PMON0001A
[1/26/05 10:17:12:529 EST] 0000000a PMIImpl A PMON0001A: PMI is enabled
A
sample of the same entry using a new message ID follows. Note that
the message ID is CWPMI0001A. All new WebSphere Application
Server message IDs begin with 'CW'.
[1/26/05 10:17:12:529 EST] 0000000a PMIImpl A CWPMI0001A: PMI is enabled.
Add the following line of code to the
:WRITE_PROPERTIES_FILE section of the scripts:![[AIX]](../images/aixlogo.gif)
![[HP-UX]](../images/hpux.gif)
![[Linux]](../images/linux.gif)
![[Solaris]](../images/solaris.gif)
Within these scripts,
append the following code to the end of the existing D_ARGS parameter:![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
任务主题