org.apache.camel.component.log
Class LogFormatter

java.lang.Object
  extended by org.apache.camel.component.log.LogFormatter
All Implemented Interfaces:
ExchangeFormatter

public class LogFormatter
extends Object
implements ExchangeFormatter

Log formatter to format the logging output.


Constructor Summary
LogFormatter()
           
 
Method Summary
 Object format(Exchange exchange)
          Generates a string representation of the exchange
protected  Object getBodyAsString(Message message)
           
protected  Object getBodyTypeAsString(Message message)
           
 boolean isMultiline()
           
 boolean isShowAll()
           
 boolean isShowBody()
           
 boolean isShowBodyType()
           
 boolean isShowExchangeId()
           
 boolean isShowHeaders()
           
 boolean isShowOut()
           
 boolean isShowProperties()
           
 void setMultiline(boolean multiline)
          If enabled then each information is outputted on a newline.
 void setShowAll(boolean showAll)
           
 void setShowBody(boolean showBody)
           
 void setShowBodyType(boolean showBodyType)
           
 void setShowExchangeId(boolean showExchangeId)
           
 void setShowHeaders(boolean showHeaders)
           
 void setShowOut(boolean showOut)
           
 void setShowProperties(boolean showProperties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFormatter

public LogFormatter()
Method Detail

format

public Object format(Exchange exchange)
Description copied from interface: ExchangeFormatter
Generates a string representation of the exchange

Specified by:
format in interface ExchangeFormatter

isShowExchangeId

public boolean isShowExchangeId()

setShowExchangeId

public void setShowExchangeId(boolean showExchangeId)

isShowProperties

public boolean isShowProperties()

setShowProperties

public void setShowProperties(boolean showProperties)

isShowHeaders

public boolean isShowHeaders()

setShowHeaders

public void setShowHeaders(boolean showHeaders)

isShowBodyType

public boolean isShowBodyType()

setShowBodyType

public void setShowBodyType(boolean showBodyType)

isShowBody

public boolean isShowBody()

setShowBody

public void setShowBody(boolean showBody)

isShowOut

public boolean isShowOut()

setShowOut

public void setShowOut(boolean showOut)

isShowAll

public boolean isShowAll()

setShowAll

public void setShowAll(boolean showAll)

isMultiline

public boolean isMultiline()

setMultiline

public void setMultiline(boolean multiline)
If enabled then each information is outputted on a newline.


getBodyAsString

protected Object getBodyAsString(Message message)

getBodyTypeAsString

protected Object getBodyTypeAsString(Message message)


Copyright © 2009 IONA Open Source Community. All Rights Reserved.