Configuring a Log Task

After adding a log task to a path within a mediation flow, specify the type of information you want to log. The Log tab of the Log task configures the information to send to the log file.

Procedure

  1. Give the task a name and description.
  2. Choose the role level of logging for the task.
  3. Set the Use Transform Data option.
    This option controls the appearance of the Log tab, where you configure the information to send to the log file.
    • If Use Transform Data is not selected (the default) on the General tab of the Log Task, the Log tab appears and shows top-level message information, and you select the items to send to the log file. To send all available information to the log file, select the Log All Items box.

    • If the Use Transform Data option is selected on the General tab of the Log task, the Log tab appears as a mapping panel. You can use this panel to build custom log messages.

Message mapped to the message element

This example shows part of a message mapped to the message element:

The messageID element is useful if you need to specify a code, or map from a code that is included in a message. See Information for Custom Log Messages for detailed information about the messageID element.

You can set a property on the mediation flow for the Log task to use at run-time, to override the Log Role setting in the General tab if they are different. For example, you might set the Log Role to debug during development, but set the run-time property to info.

See Transform Tasks for more information about using a mapping panel.