To write log messages to the standard log of the xUML service, use the log() function. It provides the same functionality as the Log Adapter.
|
Syntax |
|
|
|---|---|---|
|
Semantics |
The input consists of error level, type, code, and description. Valid log levels are: Fatal, Error, Warning, Info, and Debug as described in the log level guidelines on Bridge Server Log Levels of an xUML Service. |
|
|
Substitutables |
|
String literals Fatal, Error, Warning, Info, or Debug. |
|
|
String literal, usually containing the application name where the error occurred. |
|
|
|
String literal, usually containing the error number. |
|
|
|
String literal, usually containing the error description. |
|
|
|
Runtime 2020.6 Builder 7.8.0 (Optional) Object of complex type (class or array) that contains additional details. The contents of this object will be flattened and appended to the description. |
|
|
Examples |
Error Detail Object:
Log Statement:
Content of the Log File (Class):
Content of the Log File (Array):
|
|