+

Search Tips   |   Advanced Search

 

MessageConverter class

 

The com.ibm.websphere.logging.MessageConverter class provides a method to convert a message ID at the front of a String into either a new message ID or an old message ID. The direction of the conversion is controlled with the conversionType argument.

Use the MessageConverter class with log analysis tools to convert message IDs from earlier versions of WAS into the corresponding message IDs that are used in later releases, or to revert message IDs to an earlier format. See the article Message reference for list of message ID mappings.

Method

public static java.lang.String convert(java.lang.String in, short conversionType)

Parameters

Use the following parameters with the MessageConverter class:

Parameter Name Description
in The message to convert. The method assumes the message ID is the first part of the supplied message with no leading white space.
conversionType CONVERSION_TYPE_WASV5_TO_WASV6
  CONVERSION_TYPE_WASV6_TO_WASV5




 

Related tasks


Converting log files to use IBM unique Message IDs

 

Related Reference


convertlog command

 

Reference topic