You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

With the Log Adapter you can write log messages to the standard or transaction log of an xUML service. To write these log messages, you can use

The logging follows the channel and sinks concepts.

For more information on the logger concept, refer to xUML Runtime Logger Configuration.

Adding a Logger Adapter Operation to a Diagram

Expand the path to the Logger adapter in the service panel (Base Types/Bridge Base/Base Components/Add Ons/Logger).

You can drag out operations from the data model to any diagram:

The example on the left shows how to add a Logger adapter operation to an BPMN execution diagram.

Configuring a Logger Adapter Operation

Once a Logger operation has been added to a diagram, it needs to be configured as a Logger adapter.

Select the newly added Logger adapter operation and switch to the Attributes panel. Depending on the diagram type you can see the following information (example BPMN execution diagram):

AttributeDescriptionAllowed Values / Example
NameThe name of the Logger adapter operation. log
TypeThe path to the operation within the data model. Base  Components.Add Ons.Logger.Logger
Symbol TypeOperations added to a execution diagram are execution steps.Execution Step

All this is predefined and cannot be changed.

Click Add Stereotype to define the selected operation as to be a Logger adapter.

Select Logger from the list of available adapter stereotypes.
Click Save.

The Attributes panel now shows the added adapter stereotype. Now you still need to configure the adapter.

Expand the stereotype by clicking the arrow on the right.

On the Logger adapter, you can configure the adapter action and the channel of the adapter. Click the beside the related option to configure it.

  • action
    For the logger adapter you have to configure an adapter action. For more information see below.

  • channel
    This option is not enabled yet, but will be available to you soon.

Click the text Select an option or the arrow on the right and select the name of the respective operation as action from the drop-down list.

If the action is not set the Logger adapter always defaults to log.

  • No labels