org.apache.camel.component.log
Class LogFormatter
java.lang.Object
org.apache.camel.component.log.LogFormatter
- All Implemented Interfaces:
- ExchangeFormatter
public class LogFormatter
- extends Object
- implements ExchangeFormatter
Log formatter to format the logging output.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogFormatter
public LogFormatter()
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 © 2010 IONA Open Source Community. All Rights Reserved.