Log Transformer
http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Main
User Documentation

Transformers
Overview

Default
XSLT Transformer

Core
Fragment Extractor Transformer
I18n Transformer
Log Transformer
SQL Transformer
Filter Transformer
Read DOM Session Transformer
Write DOM Session Transformer
XInclude Transformer
CInclude Transformer
EncodeURL Transformer
SourceWriting Transformer

Optional
XT Transformer
LDAP 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"/>
  </map:transform>

Because the log file will be hardcoded into the sitemap this LOGTransformer will not be thread save! 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.
Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.