ETL: Log information

images/download/thumbnails/8356371/etl_5.png

This ETL job only write some information into log file. Prepare actual date and time and then write this value into log file (common log file of Graphlytic, see Logging in Installation manual to find location of log file).

Used drivers:

  • Groovy

  • Log

<!DOCTYPE etl SYSTEM "http://scriptella.javaforge.com/dtd/etl.dtd">
<etl>
<description>Test log</description>
<connection id="logInfo" driver="log">
level=WARN
</connection>
<connection id="groovy" driver="script">language=groovy</connection>
<script connection-id="groovy">
etl.globals['sysStart'] = new Date().format("yyyy-MM-dd'T'HH:mm:ss")
</script>
<script connection-id="logInfo">
start: ${etl.globals['sysStart']}
</script>
</etl