apache > cocoon

Log Transformer

Log Transformer

This transformations main purpose is debugging. The LogTransformer is a class that can be plugged into a pipeline to print the SAX events which passes through this transformer in a readable form to a file.

The file will be specified in a parameter tag in the sitemap pipeline to the transformer as follows:

  <map:transform type="log">
  <map:parameter name="logfile" value="logfile.log"/>
  <map:parameter name="append" value="no"/>

Because the log file will be hardcoded into the sitemap this LOGTransformer will not be thread safe.

If you don't specify the logfile the output is send to the standard output of your servlet engine.

  • Name : log
  • Class: org.apache.cocoon.transformation.LogTransformer
  • Cacheable: no.