org.apache.camel.processor
Class LogProcessor

java.lang.Object
  extended by org.apache.camel.processor.LogProcessor
All Implemented Interfaces:
Processor, Traceable

public class LogProcessor
extends Object
implements Processor, Traceable

A processor which evaluates an Expression and logs it.

Version:
$Revision: 892606 $

Constructor Summary
LogProcessor(Expression expression, Logger logger)
           
 
Method Summary
 String getTraceLabel()
          Gets the trace label used for logging when tracing is enabled.
 void process(Exchange exchange)
          Processes the message exchange
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogProcessor

public LogProcessor(Expression expression,
                    Logger logger)
Method Detail

process

public void process(Exchange exchange)
             throws Exception
Description copied from interface: Processor
Processes the message exchange

Specified by:
process in interface Processor
Parameters:
exchange - the message exchange
Throws:
Exception - if an internal processing error has occurred.

toString

public String toString()
Overrides:
toString in class Object

getTraceLabel

public String getTraceLabel()
Description copied from interface: Traceable
Gets the trace label used for logging when tracing is enabled.

The label should be short and precise.

Specified by:
getTraceLabel in interface Traceable
Returns:
the label


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.