Skip to main content
Version: 8.2411.x.x RR

LogDataSink

The LogDataSink puts each record into the log file. It is possible to specify a set of messages to be logged or to log the complete output data. If no log name is specified, the data is written to the standard error output.

Configuration

NameType, usage constraints, defaultsDescription
logrequired: paraVal
default: none
type: string
The name of the log. By default, the standard error output is used.
messagesoptional: paraList
default: none
type: list of strings
Defines the messages to be written to the log. By default, the full data of the output object is written.
timeExportsoptional: paraVal
default: none
type: integer
Defines after how many exports timing information should be written to the log file.

Example

Print output object to the standard error output.

<dataSink type="LogDataSink" />

Log some messages to the logger "mylogname" defined in log4j.xml.

<dataSink type="LogDataSink" >
<dp:paraVal name="log" value="mylogname"/>
<dp:paraList name="message">
<value>Message1</value>
<value>Name: #{in.user.name}</value>
</dp:paraList>
</dataSink>

Log the time it takes to export 1000 objects.

<dataSink type="LogDataSink" >
<dp:paraVal name="log" value="timelog"/>
<dp:paraVal name="timeExports" value="1000"/>
</dataSink>