Logger Adapter Reference
Stereotype Attributes
Logger
Attribute | Description | Allowed Values / Examples | |
---|---|---|---|
action |
The adapter action derives from the used operation. Do not configure this. | ||
channel | Logging to different channels is not enabled at the moment. |
Logger Adapter Operations
log Operation
log ( level : String, type : String, code : String, description : String , details : Any )
Name | Type | Direction | Description | Allowed Values / Examples | |
---|---|---|---|---|---|
level | String | in | Specify one of the error log levels described in the log level guidelines on xUML Service Log Levels. | One of Fatal, Error, Warning, Info, and Debug. | |
type | String | in | Specify a custom error domain. This usually is the application name where the error occurred. |
| |
code | String | in | Specify a custom error code. |
| |
description | String | in | Specify a description for the log entry. |
| |
details | Any | in | 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 |
report Operations
report ( domain : String, state : Boolean, parameter : String, description : String , timestamp : DateTime )
report ( domain : String, state : Boolean, parameter : Any, description : String )
Name | Type | Direction | Description | Field in Transaction Log | Allowed Values / Examples | |
---|---|---|---|---|---|---|
domain | String | in | Specify a self-defined name of the domain of the logged entry. | Domain |
| |
state | Boolean | in | Specify how to set the status field in the log entry. This will result in setting the status field in the log entry. | State | true | Set the status field to OK. |
false | Set the status field to ERROR. | |||||
parameter | String | in | Specify a self-defined parameter. | Parameter 2 |
| |
Any | Specify an object of complex type (class or array) that contains additional details. The contents of this object will be flattened and logged instead of parameter. |
| ||||
description | String | in | Specify a description for the log entry. | Parameter 1 |
| |
timestamp | DateTime | in | Specify a custom timestamp. This parameter is optional. If it is not given, the timestamp in the transaction log will be generated from the current timestamp. timestamp and parameter (Any) are mutual exclusive: You cannot provide a custom timestamp when providing a details object. | Date, Time | NULL | Generated timestamp in the transaction log. |
a value | Dedicated timestamp in the transaction log. |
Related Pages: