@UriEndpoint(firstVersion="1.1.0",
scheme="log",
title="Log",
syntax="log:loggerName",
producerOnly=true,
category={CORE,MONITORING})
public class LogEndpoint
extends org.apache.camel.support.ProcessorEndpoint
| Constructor and Description |
|---|
LogEndpoint() |
LogEndpoint(String endpointUri,
org.apache.camel.Component component) |
LogEndpoint(String endpointUri,
org.apache.camel.Component component,
org.apache.camel.Processor logger) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createEndpointUri() |
protected org.apache.camel.Processor |
createLogger()
Creates the logger
Processor to be used. |
org.apache.camel.Producer |
createProducer() |
protected void |
doInit() |
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.spi.ExchangeFormatter |
getExchangeFormatter() |
Boolean |
getGroupActiveOnly()
If true, will hide stats when no new messages have been received for a time interval, if false, show stats
regardless of message traffic.
|
Long |
getGroupDelay()
Set the initial delay for stats (in millis)
|
Long |
getGroupInterval()
If specified will group message stats by this time interval (in millis)
|
Integer |
getGroupSize()
An integer that specifies a group size for throughput logging.
|
String |
getLevel()
Logging level to use.
|
org.apache.camel.spi.ExchangeFormatter |
getLocalFormatter() |
org.apache.camel.Processor |
getLogger() |
String |
getLoggerName()
The logger name to use
|
Boolean |
getLogMask() |
String |
getMarker()
An optional Marker name to use.
|
int |
getMaxChars() |
org.slf4j.Logger |
getProvidedLogger() |
org.apache.camel.support.processor.DefaultExchangeFormatter.OutputStyle |
getStyle() |
boolean |
isMultiline() |
boolean |
isShowAll() |
boolean |
isShowBody() |
boolean |
isShowBodyType() |
boolean |
isShowCaughtException() |
boolean |
isShowException() |
boolean |
isShowExchangeId() |
boolean |
isShowExchangePattern() |
boolean |
isShowFiles() |
boolean |
isShowFuture() |
boolean |
isShowHeaders() |
boolean |
isShowProperties() |
boolean |
isShowStackTrace() |
boolean |
isShowStreams() |
boolean |
isSkipBodyLineSeparator() |
void |
setExchangeFormatter(org.apache.camel.spi.ExchangeFormatter exchangeFormatter)
To use a custom exchange formatter
|
void |
setGroupActiveOnly(Boolean groupActiveOnly)
If true, will hide stats when no new messages have been received for a time interval, if false, show stats
regardless of message traffic.
|
void |
setGroupDelay(Long groupDelay)
Set the initial delay for stats (in millis)
|
void |
setGroupInterval(Long groupInterval)
If specified will group message stats by this time interval (in millis)
|
void |
setGroupSize(Integer groupSize)
An integer that specifies a group size for throughput logging.
|
void |
setLevel(String level)
Logging level to use.
|
void |
setLocalFormatter(org.apache.camel.spi.ExchangeFormatter localFormatter) |
void |
setLogger(org.apache.camel.Processor logger) |
void |
setLoggerName(String loggerName)
The logger name to use
|
void |
setLogMask(Boolean logMask)
If true, mask sensitive information like password or passphrase in the log.
|
void |
setMarker(String marker)
An optional Marker name to use.
|
void |
setMaxChars(int maxChars) |
void |
setMultiline(boolean multiline) |
void |
setProvidedLogger(org.slf4j.Logger providedLogger) |
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 |
setShowExchangePattern(boolean showExchangePattern) |
void |
setShowFiles(boolean showFiles) |
void |
setShowFuture(boolean showFuture) |
void |
setShowHeaders(boolean showHeaders) |
void |
setShowProperties(boolean showProperties) |
void |
setShowStackTrace(boolean showStackTrace) |
void |
setShowStreams(boolean showStreams) |
void |
setSkipBodyLineSeparator(boolean skipBodyLineSeparator) |
void |
setStyle(org.apache.camel.support.processor.DefaultExchangeFormatter.OutputStyle style) |
createPollingConsumer, createProcessor, getProcessor, onExchange, setProcessorconfigureConsumer, configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigurePollingConsumer, createAsyncProducer, createExchange, createExchange, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, isSynchronous, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic LogEndpoint()
public LogEndpoint(String endpointUri, org.apache.camel.Component component)
public LogEndpoint(String endpointUri, org.apache.camel.Component component, org.apache.camel.Processor logger)
protected void doInit()
throws Exception
doInit in class org.apache.camel.support.DefaultEndpointExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.ScheduledPollEndpointExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.ScheduledPollEndpointExceptionpublic void setLogger(org.apache.camel.Processor logger)
public org.apache.camel.Processor getLogger()
public org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointcreateProducer in class org.apache.camel.support.ProcessorEndpointExceptionprotected String createEndpointUri()
createEndpointUri in class org.apache.camel.support.DefaultEndpointprotected org.apache.camel.Processor createLogger()
throws Exception
Processor to be used.Exceptionpublic String getLevel()
public void setLevel(String level)
public String getMarker()
public void setMarker(String marker)
public Integer getGroupSize()
public void setGroupSize(Integer groupSize)
public Long getGroupInterval()
public void setGroupInterval(Long groupInterval)
public Boolean getGroupActiveOnly()
public void setGroupActiveOnly(Boolean groupActiveOnly)
public Long getGroupDelay()
public void setGroupDelay(Long groupDelay)
public org.apache.camel.spi.ExchangeFormatter getLocalFormatter()
public void setLocalFormatter(org.apache.camel.spi.ExchangeFormatter localFormatter)
public org.slf4j.Logger getProvidedLogger()
public void setProvidedLogger(org.slf4j.Logger providedLogger)
public String getLoggerName()
public void setLoggerName(String loggerName)
public Boolean getLogMask()
public void setLogMask(Boolean logMask)
public org.apache.camel.spi.ExchangeFormatter getExchangeFormatter()
public void setExchangeFormatter(org.apache.camel.spi.ExchangeFormatter exchangeFormatter)
public boolean isShowExchangeId()
public void setShowExchangeId(boolean showExchangeId)
public boolean isShowExchangePattern()
public void setShowExchangePattern(boolean showExchangePattern)
public boolean isShowProperties()
public void setShowProperties(boolean showProperties)
public boolean isShowHeaders()
public void setShowHeaders(boolean showHeaders)
public boolean isSkipBodyLineSeparator()
public void setSkipBodyLineSeparator(boolean skipBodyLineSeparator)
public boolean isShowBody()
public void setShowBody(boolean showBody)
public boolean isShowBodyType()
public void setShowBodyType(boolean showBodyType)
public boolean isShowException()
public void setShowException(boolean showException)
public boolean isShowCaughtException()
public void setShowCaughtException(boolean showCaughtException)
public boolean isShowStackTrace()
public void setShowStackTrace(boolean showStackTrace)
public boolean isShowAll()
public void setShowAll(boolean showAll)
public boolean isMultiline()
public void setMultiline(boolean multiline)
public boolean isShowFuture()
public void setShowFuture(boolean showFuture)
public boolean isShowStreams()
public void setShowStreams(boolean showStreams)
public boolean isShowFiles()
public void setShowFiles(boolean showFiles)
public int getMaxChars()
public void setMaxChars(int maxChars)
public org.apache.camel.support.processor.DefaultExchangeFormatter.OutputStyle getStyle()
public void setStyle(org.apache.camel.support.processor.DefaultExchangeFormatter.OutputStyle style)
Apache Camel