|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.component.log.LogFormatter
public class LogFormatter
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)
|
int |
getMaxChars()
|
boolean |
isMultiline()
|
boolean |
isShowAll()
|
boolean |
isShowBody()
|
boolean |
isShowBodyType()
|
boolean |
isShowCaughtException()
|
boolean |
isShowException()
|
boolean |
isShowExchangeId()
|
boolean |
isShowFuture()
|
boolean |
isShowHeaders()
|
boolean |
isShowOut()
|
boolean |
isShowProperties()
|
boolean |
isShowStackTrace()
|
void |
setMaxChars(int maxChars)
|
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 |
setShowCaughtException(boolean showCaughtException)
|
void |
setShowException(boolean showException)
|
void |
setShowExchangeId(boolean showExchangeId)
|
void |
setShowFuture(boolean showFuture)
If enabled Camel will on Future objects wait for it to complete to obtain the payload to be logged. |
void |
setShowHeaders(boolean showHeaders)
|
void |
setShowOut(boolean showOut)
|
void |
setShowProperties(boolean showProperties)
|
void |
setShowStackTrace(boolean showStackTrace)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogFormatter()
| Method Detail |
|---|
public Object format(Exchange exchange)
ExchangeFormatter
format in interface ExchangeFormatterexchange - the exchange
public boolean isShowExchangeId()
public void setShowExchangeId(boolean showExchangeId)
public boolean isShowProperties()
public void setShowProperties(boolean showProperties)
public boolean isShowHeaders()
public void setShowHeaders(boolean showHeaders)
public boolean isShowBodyType()
public void setShowBodyType(boolean showBodyType)
public boolean isShowBody()
public void setShowBody(boolean showBody)
public boolean isShowOut()
public void setShowOut(boolean showOut)
public boolean isShowAll()
public void setShowAll(boolean showAll)
public boolean isShowException()
public void setShowException(boolean showException)
public boolean isShowStackTrace()
public void setShowStackTrace(boolean showStackTrace)
public boolean isShowCaughtException()
public void setShowCaughtException(boolean showCaughtException)
public boolean isMultiline()
public int getMaxChars()
public void setMaxChars(int maxChars)
public void setMultiline(boolean multiline)
public boolean isShowFuture()
public void setShowFuture(boolean showFuture)
protected Object getBodyAsString(Message message)
protected Object getBodyTypeAsString(Message message)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||