Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 24.0

...

Classe2e-refDiv
Rp

...

Runtime

...

2020.8 Builder 7.10.1 To write log messages to the standard log of the xUML service using a custom logger configuration, use the logTo() function. It provides the same functionality as the Log Adapter.

Info
iconfalse

To use the standard logger configuration, use the log.

Syntax
Code Block
languagenone
logTo(channel, level, message);
logTo(channel, level, message, details);
Semantics

Write a message to the standard log of the xUML service using a custom logger configuration.

Info
iconfalse
Valid log levels are: Fatal, Error, Warning, Info, and Debug as described in the log level guidelines on Log Levels of an xUML Service.
SubstitutableschannelLog channel the message will be logged to. See Defining a Custom Logger Configuration for more information.
levelString literals Fatal, Error, Warning, Info, or Debug.
messageString literal, usually containing the error description.
details(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

Custom Logger Configuration:

Image Modified

Error Detail Object:

Code Block
{
	"element": "AF-1201",
	"value":   "Adapter"
}

Log Statement:

Code Block
languagenone
logTo("Channel_Custom", "Error",
      "Stock_Synchronization/SYNC001: Item ID could not be found.", errorDetail);

Content of the Log File According to Defined Formatter (Class):

2020-06-25 Stock_Synchronization/SYNC001: Item ID could not be found. Detail: e2e:type='ErrorDetail', element='AF-1201', value='Adapter'

Content of the Log File (Array):

... Detail: e2e:type='ErrorDetail', [0].element='AF-1201', [0].value='Adapter', [1].element='CD-2000', [1].value='Connector'

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNamelogto
nopaneltrue
PageWithExcerptINTERNAL:_examples_BRIDGE