This topic applies only to the IBM Business Process Manager Advanced configuration.

Logging messages during a mediation flow

You can use the Message Logger mediation primitive to store messages that you can process later. The logged messages can be used for various purposes. For example, you could use the logged messages for data mining or for auditing.

About this task

The Message Logger mediation primitive logs messages to a relational database using an IBM-defined database schema. It does not write to other storage mediums such as flat files. The Message Logger mediation primitive logs an XML transcoded copy of the service message object.

By default, the Message Logger logs the body section of the message. You can configure the Message Logger to log the entire message, or you can use an XPath expression to specify a part of the message to be logged.

By default, messages are logged to the Common database that is created during installation of the server. You can create your own database and log your messages there. Or, when you install and configure your runtime product you can specify which physical database is used as the Common database. For example, you might define the Common database as being a DB2® database.

For more information on the Message Logger primitive, see the Message Logger mediation primitive topic in the Reference section.

For information on viewing logged messages, see the example topic in the Message Logger mediation primitive Reference.