@Metadata(label="configuration") public class LogDefinition extends NoOutputDefinition<LogDefinition>
inheritErrorHandler, log
Constructor and Description |
---|
LogDefinition() |
LogDefinition(String message) |
Modifier and Type | Method and Description |
---|---|
void |
addOutput(ProcessorDefinition<?> output)
Adds the given definition as output to this block
|
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor
based on the definition model.
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node
|
org.slf4j.Logger |
getLogger() |
String |
getLoggerRef() |
LoggingLevel |
getLoggingLevel() |
String |
getLogName() |
String |
getMarker() |
String |
getMessage() |
void |
setLogger(org.slf4j.Logger logger)
To use a custom logger instance
|
void |
setLoggerRef(String loggerRef)
To refer to a custom logger instance to lookup from the registry.
|
void |
setLoggingLevel(LoggingLevel loggingLevel)
Sets the logging level.
|
void |
setLogName(String logName)
Sets the name of the logger
|
void |
setMarker(String marker)
To use slf4j marker
|
void |
setMessage(String message)
Sets the log message (uses simple language)
|
String |
toString() |
getOutputs, isOutputSupported
addInterceptStrategies, addInterceptStrategy, addRoutes, aggregate, aggregate, aggregate, aggregate, aop, attribute, bean, bean, bean, bean, bean, bean, bean, bean, beanRef, beanRef, beanRef, beanRef, beanRef, choice, clearOutput, configureChild, convertBodyTo, convertBodyTo, createChannel, createChildProcessor, createCompositeProcessor, createOutputsProcessor, createOutputsProcessor, createOutputsProcessorImpl, createProcessor, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrichRef, enrichRef, enrichRef, filter, filter, filter, filter, getIndex, getInterceptStrategies, getOtherAttributes, getParent, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, loadBalance, loadBalance, log, log, log, log, log, log, loop, loop, loop, makeProcessor, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, onException, pipeline, pipeline, pipeline, pipeline, placeholder, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichRef, pollEnrichRef, preCreateProcessor, process, process, processRef, recipientList, recipientList, recipientList, recipientList, removeFaultHeader, removeHeader, removeHeaders, removeHeaders, removeProperties, removeProperties, removeProperty, resequence, resequence, rollback, rollback, routeDescription, routeId, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, sample, sample, sample, script, script, setBody, setBody, setExchangePattern, setFaultBody, setFaultHeader, setHeader, setHeader, setInheritErrorHandler, setOtherAttributes, setOutHeader, setOutHeader, setParent, setProperty, setProperty, sort, sort, sort, split, split, split, startupOrder, stop, threads, threads, threads, threads, throttle, throttle, throwException, throwException, to, to, to, to, to, to, to, to, to, to, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wrapChannel, wrapInErrorHandler, wrapProcessor
description, description, getCustomId, getDescription, getDescriptionText, getId, getShortName, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setId
public LogDefinition()
public LogDefinition(String message)
public String getLabel()
ProcessorDefinition
getLabel
in interface NamedNode
getLabel
in class ProcessorDefinition<LogDefinition>
public Processor createProcessor(RouteContext routeContext) throws Exception
ProcessorDefinition
createProcessor
in class ProcessorDefinition<LogDefinition>
Exception
public void addOutput(ProcessorDefinition<?> output)
Block
addOutput
in interface Block
addOutput
in class ProcessorDefinition<LogDefinition>
output
- the processor definitionpublic LoggingLevel getLoggingLevel()
public void setLoggingLevel(LoggingLevel loggingLevel)
public String getMessage()
public void setMessage(String message)
public String getLogName()
public void setLogName(String logName)
public String getLoggerRef()
public void setLoggerRef(String loggerRef)
public org.slf4j.Logger getLogger()
public void setLogger(org.slf4j.Logger logger)
Apache Camel