logMessageBean

The fully qualified class name for the bean is com.ibm.paydir.ima.txacc.app.bridge.LogMessageBean.

LogMessageBean has the following constructors to build an instance:
  • a no argument, bean compliant constructor
  • a multiple argument constructor that fully populates the bean
Either constructor may be used. When the no argument constructor is used, the contents of the bean can be set by using the methods that are shown in the following table.
Table 1. LogMessageBean Methods
Method name Takes data type Description
setMessageLevel MessageLevel Sets the severity level of the logged message. Only the following values are allowed. The other values are reserved for IBM® internal use only.
  • MessageLevel.SEVERE
  • MessageLevel.WARNING
  • MessageLevel.INFO
The message level severity values are contained in the com.ibm.icpcs.utilities.logging.MessageLevel class.
setMessageId String Sets the message identifier of the logged message. The message identifier is a one to nine character value used to identify messages in the logs.

For consistency in the logs, it is recommended that the message ID use a standard format. The format is CCCAANNNS, where:

  • CCCAA is a three to five character message prefix used to uniquely identify the source of the message
  • AANNN is a three to five character message number used to identify the purpose of this message
  • S is the message severity indicator. Use one of the following:
    S
    Severe
    W
    Warning
    I
    Informational
    For consistency, this severity indicator should match the one in MessageLevel.
Note: Together, the message prefix and the message number should total eight characters. Depending on the lengths chosen, the center two characters in the format string (AA) belong to either the prefix or the number.
setMessageText String Sets the actual message text to be logged. For consistency in the format of the log, the message text should start with the nine character message identifier followed by a colon and then by a space. This makes it easier to find the message while looking at the log.
setSourceClass String Sets the name of the source class that generated the log entry. It must be 254 characters or less.
setSourceMethod String Sets the name of the source method that generated the log entry. It must be 254 characters or less.
setLoggingAppData LoggingAppData An instance of a LoggingAppData that identifies the application writing this log entry. For a description of the bean, see loggingAppData bean.