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
- Parameters:
exchange
- the exchange
- Returns:
- a string representation of the exchange
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)
isShowException
public boolean isShowException()
setShowException
public void setShowException(boolean showException)
isShowStackTrace
public boolean isShowStackTrace()
setShowStackTrace
public void setShowStackTrace(boolean showStackTrace)
isShowCaughtException
public boolean isShowCaughtException()
setShowCaughtException
public void setShowCaughtException(boolean showCaughtException)
isMultiline
public boolean isMultiline()
getMaxChars
public int getMaxChars()
setMaxChars
public void setMaxChars(int maxChars)
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)
Apache CAMEL