Writing into the Standard xUML Service Log
This page explains the Logger adapter in Bridge context. If you were looking for the same information regarding the PAS Designer, refer to Logger Adapter in the Designer guide.
With the <<Logger>> adapter you can write into the log file of the service. Use action log in this case.
The following picture shows the usage of the <<Logger>> adapter:
Tag action of the logger adapter needs to be set to log. The following input can be provided:
Name | Type | Direction | Description | Allowed Values / Example | |
---|---|---|---|---|---|
level | String | in | Specify one of the error log levels described in the log level guidelines on Bridge Server Log Levels of an xUML Service. | One of Fatal, Error, Warning, Info, and Debug. | |
type | String | in | Specify a custom error domain. | Stock_Synchronization | |
code | String | in | Specify a custom error code. | SYNC001 | |
description | String | in | Specify a description for the log entry. | Item ID could not be found. | |
details | Any | in | Runtime 2020.6 Builder 7.8.0 Specify an object of complex type (class or array) that contains additional details. If provided, the contents of this object will be flattened and appended to the description. | an error detail object |
Example
Pin | Value |
---|---|
level |
|
type |
|
code |
|
description |
|
details |
|
The output after running the example can be found in the standard xUML service log of the xUML service:
...[Error][Internal][Stock_Synchronization][Item ID could not be found. Detail: e2e:type='ErrorDetail', element='AF-1201', value='Adapter']
In case of an array, the output would look something like:
... Detail: e2e:type='ErrorDetail', [0].element='AF-1201', [0].value='Adapter', [1].element='CD-2000', [1].value='Connector'