Description

This transformer is used to record details of a feature to the translation log.

An alternate way to see the attributes and geometries of features is to route them into a Visualizer transformer, which will display them in the FME Universal Viewer.


The Terminator transformer is similar -  the difference being that the Logger workspace merely records the  feature, and does not terminate the translation.
 

Raster Data

This transformer is particularly useful to find out information about a raster feature. It will record information very quickly, compared to several minutes when the data is transferred to the FME Universal Viewer via a Visualizer transformer.

 

Parameters

The Logger transformer parameter is overridden by the Advanced Workspace Parameter "Max Features to Log". Therefore the transformer may not always log as many features as expected!

 

Custom Messages

To write custom messages to the log use the @Tcl2 function within the TCLCaller transformer.
 

Example

This workspace shows an example use of the Logger transformer:
 

In this example dates are tested for validity. Invalid dates get a log message - we are assuming it is not necessary to stop the remaining data from being written, which is not always the case.

 

Screenshots

User-added image

Above: The main workspace. The Loggers are just a small part of this larger scenario.

User-added image

Above: The Logger parameter to set output Feature Type in the spatial log dataset.

User-added image

Above: The results of the workspace. Notice the single log FFS file.

User-added image

Above: When the log data is opened in Viewer, you'll get two different feature types (one per Logger).