@Component(value="log")
public class LogComponent
extends org.apache.camel.support.DefaultComponent
| Constructor and Description |
|---|
LogComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
org.apache.camel.spi.ExchangeFormatter |
getExchangeFormatter() |
protected org.slf4j.Logger |
getLogger(Map<String,Object> parameters)
Gets optional
Logger instance from parameters. |
protected org.apache.camel.LoggingLevel |
getLoggingLevel(Map<String,Object> parameters)
Gets the logging level, will default to use INFO if no level parameter provided.
|
void |
setExchangeFormatter(org.apache.camel.spi.ExchangeFormatter exchangeFormatter)
Sets a custom
ExchangeFormatter to convert the Exchange to a String suitable for logging. |
afterConfiguration, createEndpoint, createEndpoint, doBuild, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIbuild, doFail, doInit, 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint in class org.apache.camel.support.DefaultComponentExceptionprotected org.apache.camel.LoggingLevel getLoggingLevel(Map<String,Object> parameters)
protected org.slf4j.Logger getLogger(Map<String,Object> parameters)
Logger instance from parameters. If non-null, the provided instance will be used as
Logger in CamelLoggerparameters - the parameterspublic org.apache.camel.spi.ExchangeFormatter getExchangeFormatter()
public void setExchangeFormatter(org.apache.camel.spi.ExchangeFormatter exchangeFormatter)
ExchangeFormatter to convert the Exchange to a String suitable for logging. If not
specified, we default to DefaultExchangeFormatter.Apache Camel