Interface LogEndpointBuilderFactory.LogEndpointBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- Enclosing interface:
- LogEndpointBuilderFactory
public static interface LogEndpointBuilderFactory.LogEndpointBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint for the Log component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default LogEndpointBuilderFactory.AdvancedLogEndpointBuilder
advanced()
default LogEndpointBuilderFactory.LogEndpointBuilder
groupActiveOnly(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.default LogEndpointBuilderFactory.LogEndpointBuilder
groupActiveOnly(String 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.default LogEndpointBuilderFactory.LogEndpointBuilder
groupDelay(Long groupDelay)
Set the initial delay for stats (in millis).default LogEndpointBuilderFactory.LogEndpointBuilder
groupDelay(String groupDelay)
Set the initial delay for stats (in millis).default LogEndpointBuilderFactory.LogEndpointBuilder
groupInterval(Long groupInterval)
If specified will group message stats by this time interval (in millis).default LogEndpointBuilderFactory.LogEndpointBuilder
groupInterval(String groupInterval)
If specified will group message stats by this time interval (in millis).default LogEndpointBuilderFactory.LogEndpointBuilder
groupSize(Integer groupSize)
An integer that specifies a group size for throughput logging.default LogEndpointBuilderFactory.LogEndpointBuilder
groupSize(String groupSize)
An integer that specifies a group size for throughput logging.default LogEndpointBuilderFactory.LogEndpointBuilder
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).default LogEndpointBuilderFactory.LogEndpointBuilder
lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message).default LogEndpointBuilderFactory.LogEndpointBuilder
level(String level)
Logging level to use.default LogEndpointBuilderFactory.LogEndpointBuilder
logMask(Boolean logMask)
If true, mask sensitive information like password or passphrase in the log.default LogEndpointBuilderFactory.LogEndpointBuilder
logMask(String logMask)
If true, mask sensitive information like password or passphrase in the log.default LogEndpointBuilderFactory.LogEndpointBuilder
marker(String marker)
An optional Marker name to use.default LogEndpointBuilderFactory.LogEndpointBuilder
maxChars(int maxChars)
Limits the number of characters logged per line.default LogEndpointBuilderFactory.LogEndpointBuilder
maxChars(String maxChars)
Limits the number of characters logged per line.default LogEndpointBuilderFactory.LogEndpointBuilder
multiline(boolean multiline)
If enabled then each information is outputted on a newline.default LogEndpointBuilderFactory.LogEndpointBuilder
multiline(String multiline)
If enabled then each information is outputted on a newline.default LogEndpointBuilderFactory.LogEndpointBuilder
showAll(boolean showAll)
Quick option for turning all options on.default LogEndpointBuilderFactory.LogEndpointBuilder
showAll(String showAll)
Quick option for turning all options on.default LogEndpointBuilderFactory.LogEndpointBuilder
showBody(boolean showBody)
Show the message body.default LogEndpointBuilderFactory.LogEndpointBuilder
showBody(String showBody)
Show the message body.default LogEndpointBuilderFactory.LogEndpointBuilder
showBodyType(boolean showBodyType)
Show the body Java type.default LogEndpointBuilderFactory.LogEndpointBuilder
showBodyType(String showBodyType)
Show the body Java type.default LogEndpointBuilderFactory.LogEndpointBuilder
showCaughtException(boolean showCaughtException)
If the exchange has a caught exception, show the exception message (no stack trace).default LogEndpointBuilderFactory.LogEndpointBuilder
showCaughtException(String showCaughtException)
If the exchange has a caught exception, show the exception message (no stack trace).default LogEndpointBuilderFactory.LogEndpointBuilder
showException(boolean showException)
If the exchange has an exception, show the exception message (no stacktrace).default LogEndpointBuilderFactory.LogEndpointBuilder
showException(String showException)
If the exchange has an exception, show the exception message (no stacktrace).default LogEndpointBuilderFactory.LogEndpointBuilder
showExchangeId(boolean showExchangeId)
Show the unique exchange ID.default LogEndpointBuilderFactory.LogEndpointBuilder
showExchangeId(String showExchangeId)
Show the unique exchange ID.default LogEndpointBuilderFactory.LogEndpointBuilder
showExchangePattern(boolean showExchangePattern)
Shows the Message Exchange Pattern (or MEP for short).default LogEndpointBuilderFactory.LogEndpointBuilder
showExchangePattern(String showExchangePattern)
Shows the Message Exchange Pattern (or MEP for short).default LogEndpointBuilderFactory.LogEndpointBuilder
showFiles(boolean showFiles)
If enabled Camel will output files.default LogEndpointBuilderFactory.LogEndpointBuilder
showFiles(String showFiles)
If enabled Camel will output files.default LogEndpointBuilderFactory.LogEndpointBuilder
showFuture(boolean showFuture)
If enabled Camel will on Future objects wait for it to complete to obtain the payload to be logged.default LogEndpointBuilderFactory.LogEndpointBuilder
showFuture(String showFuture)
If enabled Camel will on Future objects wait for it to complete to obtain the payload to be logged.default LogEndpointBuilderFactory.LogEndpointBuilder
showHeaders(boolean showHeaders)
Show the message headers.default LogEndpointBuilderFactory.LogEndpointBuilder
showHeaders(String showHeaders)
Show the message headers.default LogEndpointBuilderFactory.LogEndpointBuilder
showProperties(boolean showProperties)
Show the exchange properties.default LogEndpointBuilderFactory.LogEndpointBuilder
showProperties(String showProperties)
Show the exchange properties.default LogEndpointBuilderFactory.LogEndpointBuilder
showStackTrace(boolean showStackTrace)
Show the stack trace, if an exchange has an exception.default LogEndpointBuilderFactory.LogEndpointBuilder
showStackTrace(String showStackTrace)
Show the stack trace, if an exchange has an exception.default LogEndpointBuilderFactory.LogEndpointBuilder
showStreams(boolean showStreams)
Whether Camel should show stream bodies or not (eg such as java.io.InputStream).default LogEndpointBuilderFactory.LogEndpointBuilder
showStreams(String showStreams)
Whether Camel should show stream bodies or not (eg such as java.io.InputStream).default LogEndpointBuilderFactory.LogEndpointBuilder
skipBodyLineSeparator(boolean skipBodyLineSeparator)
Whether to skip line separators when logging the message body.default LogEndpointBuilderFactory.LogEndpointBuilder
skipBodyLineSeparator(String skipBodyLineSeparator)
Whether to skip line separators when logging the message body.default LogEndpointBuilderFactory.LogEndpointBuilder
style(String style)
Sets the outputs style to use.default LogEndpointBuilderFactory.LogEndpointBuilder
style(LogEndpointBuilderFactory.OutputStyle style)
Sets the outputs style to use.
-
-
-
Method Detail
-
advanced
default LogEndpointBuilderFactory.AdvancedLogEndpointBuilder advanced()
-
groupActiveOnly
default LogEndpointBuilderFactory.LogEndpointBuilder groupActiveOnly(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. The option is a:java.lang.Boolean
type. Default: true Group: producer
-
groupActiveOnly
default LogEndpointBuilderFactory.LogEndpointBuilder groupActiveOnly(String 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. The option will be converted to ajava.lang.Boolean
type. Default: true Group: producer
-
groupDelay
default LogEndpointBuilderFactory.LogEndpointBuilder groupDelay(Long groupDelay)
Set the initial delay for stats (in millis). The option is a:java.lang.Long
type. Group: producer
-
groupDelay
default LogEndpointBuilderFactory.LogEndpointBuilder groupDelay(String groupDelay)
Set the initial delay for stats (in millis). The option will be converted to ajava.lang.Long
type. Group: producer
-
groupInterval
default LogEndpointBuilderFactory.LogEndpointBuilder groupInterval(Long groupInterval)
If specified will group message stats by this time interval (in millis). The option is a:java.lang.Long
type. Group: producer
-
groupInterval
default LogEndpointBuilderFactory.LogEndpointBuilder groupInterval(String groupInterval)
If specified will group message stats by this time interval (in millis). The option will be converted to ajava.lang.Long
type. Group: producer
-
groupSize
default LogEndpointBuilderFactory.LogEndpointBuilder groupSize(Integer groupSize)
An integer that specifies a group size for throughput logging. The option is a:java.lang.Integer
type. Group: producer
-
groupSize
default LogEndpointBuilderFactory.LogEndpointBuilder groupSize(String groupSize)
An integer that specifies a group size for throughput logging. The option will be converted to ajava.lang.Integer
type. Group: producer
-
lazyStartProducer
default LogEndpointBuilderFactory.LogEndpointBuilder lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a:boolean
type. Default: false Group: producer
-
lazyStartProducer
default LogEndpointBuilderFactory.LogEndpointBuilder lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option will be converted to aboolean
type. Default: false Group: producer
-
level
default LogEndpointBuilderFactory.LogEndpointBuilder level(String level)
Logging level to use. The default value is INFO. The option is a:java.lang.String
type. Default: INFO Group: producer
-
logMask
default LogEndpointBuilderFactory.LogEndpointBuilder logMask(Boolean logMask)
If true, mask sensitive information like password or passphrase in the log. The option is a:java.lang.Boolean
type. Group: producer
-
logMask
default LogEndpointBuilderFactory.LogEndpointBuilder logMask(String logMask)
If true, mask sensitive information like password or passphrase in the log. The option will be converted to ajava.lang.Boolean
type. Group: producer
-
marker
default LogEndpointBuilderFactory.LogEndpointBuilder marker(String marker)
An optional Marker name to use. The option is a:java.lang.String
type. Group: producer
-
maxChars
default LogEndpointBuilderFactory.LogEndpointBuilder maxChars(int maxChars)
Limits the number of characters logged per line. The option is a:int
type. Default: 10000 Group: formatting
-
maxChars
default LogEndpointBuilderFactory.LogEndpointBuilder maxChars(String maxChars)
Limits the number of characters logged per line. The option will be converted to aint
type. Default: 10000 Group: formatting
-
multiline
default LogEndpointBuilderFactory.LogEndpointBuilder multiline(boolean multiline)
If enabled then each information is outputted on a newline. The option is a:boolean
type. Default: false Group: formatting
-
multiline
default LogEndpointBuilderFactory.LogEndpointBuilder multiline(String multiline)
If enabled then each information is outputted on a newline. The option will be converted to aboolean
type. Default: false Group: formatting
-
showAll
default LogEndpointBuilderFactory.LogEndpointBuilder showAll(boolean showAll)
Quick option for turning all options on. (multiline, maxChars has to be manually set if to be used). The option is a:boolean
type. Default: false Group: formatting
-
showAll
default LogEndpointBuilderFactory.LogEndpointBuilder showAll(String showAll)
Quick option for turning all options on. (multiline, maxChars has to be manually set if to be used). The option will be converted to aboolean
type. Default: false Group: formatting
-
showBody
default LogEndpointBuilderFactory.LogEndpointBuilder showBody(boolean showBody)
Show the message body. The option is a:boolean
type. Default: true Group: formatting
-
showBody
default LogEndpointBuilderFactory.LogEndpointBuilder showBody(String showBody)
Show the message body. The option will be converted to aboolean
type. Default: true Group: formatting
-
showBodyType
default LogEndpointBuilderFactory.LogEndpointBuilder showBodyType(boolean showBodyType)
Show the body Java type. The option is a:boolean
type. Default: true Group: formatting
-
showBodyType
default LogEndpointBuilderFactory.LogEndpointBuilder showBodyType(String showBodyType)
Show the body Java type. The option will be converted to aboolean
type. Default: true Group: formatting
-
showCaughtException
default LogEndpointBuilderFactory.LogEndpointBuilder showCaughtException(boolean showCaughtException)
If the exchange has a caught exception, show the exception message (no stack trace). A caught exception is stored as a property on the exchange (using the key org.apache.camel.Exchange#EXCEPTION_CAUGHT) and for instance a doCatch can catch exceptions. The option is a:boolean
type. Default: false Group: formatting
-
showCaughtException
default LogEndpointBuilderFactory.LogEndpointBuilder showCaughtException(String showCaughtException)
If the exchange has a caught exception, show the exception message (no stack trace). A caught exception is stored as a property on the exchange (using the key org.apache.camel.Exchange#EXCEPTION_CAUGHT) and for instance a doCatch can catch exceptions. The option will be converted to aboolean
type. Default: false Group: formatting
-
showException
default LogEndpointBuilderFactory.LogEndpointBuilder showException(boolean showException)
If the exchange has an exception, show the exception message (no stacktrace). The option is a:boolean
type. Default: false Group: formatting
-
showException
default LogEndpointBuilderFactory.LogEndpointBuilder showException(String showException)
If the exchange has an exception, show the exception message (no stacktrace). The option will be converted to aboolean
type. Default: false Group: formatting
-
showExchangeId
default LogEndpointBuilderFactory.LogEndpointBuilder showExchangeId(boolean showExchangeId)
Show the unique exchange ID. The option is a:boolean
type. Default: false Group: formatting
-
showExchangeId
default LogEndpointBuilderFactory.LogEndpointBuilder showExchangeId(String showExchangeId)
Show the unique exchange ID. The option will be converted to aboolean
type. Default: false Group: formatting
-
showExchangePattern
default LogEndpointBuilderFactory.LogEndpointBuilder showExchangePattern(boolean showExchangePattern)
Shows the Message Exchange Pattern (or MEP for short). The option is a:boolean
type. Default: true Group: formatting
-
showExchangePattern
default LogEndpointBuilderFactory.LogEndpointBuilder showExchangePattern(String showExchangePattern)
Shows the Message Exchange Pattern (or MEP for short). The option will be converted to aboolean
type. Default: true Group: formatting
-
showFiles
default LogEndpointBuilderFactory.LogEndpointBuilder showFiles(boolean showFiles)
If enabled Camel will output files. The option is a:boolean
type. Default: false Group: formatting
-
showFiles
default LogEndpointBuilderFactory.LogEndpointBuilder showFiles(String showFiles)
If enabled Camel will output files. The option will be converted to aboolean
type. Default: false Group: formatting
-
showFuture
default LogEndpointBuilderFactory.LogEndpointBuilder showFuture(boolean showFuture)
If enabled Camel will on Future objects wait for it to complete to obtain the payload to be logged. The option is a:boolean
type. Default: false Group: formatting
-
showFuture
default LogEndpointBuilderFactory.LogEndpointBuilder showFuture(String showFuture)
If enabled Camel will on Future objects wait for it to complete to obtain the payload to be logged. The option will be converted to aboolean
type. Default: false Group: formatting
-
showHeaders
default LogEndpointBuilderFactory.LogEndpointBuilder showHeaders(boolean showHeaders)
Show the message headers. The option is a:boolean
type. Default: false Group: formatting
-
showHeaders
default LogEndpointBuilderFactory.LogEndpointBuilder showHeaders(String showHeaders)
Show the message headers. The option will be converted to aboolean
type. Default: false Group: formatting
-
showProperties
default LogEndpointBuilderFactory.LogEndpointBuilder showProperties(boolean showProperties)
Show the exchange properties. The option is a:boolean
type. Default: false Group: formatting
-
showProperties
default LogEndpointBuilderFactory.LogEndpointBuilder showProperties(String showProperties)
Show the exchange properties. The option will be converted to aboolean
type. Default: false Group: formatting
-
showStackTrace
default LogEndpointBuilderFactory.LogEndpointBuilder showStackTrace(boolean showStackTrace)
Show the stack trace, if an exchange has an exception. Only effective if one of showAll, showException or showCaughtException are enabled. The option is a:boolean
type. Default: false Group: formatting
-
showStackTrace
default LogEndpointBuilderFactory.LogEndpointBuilder showStackTrace(String showStackTrace)
Show the stack trace, if an exchange has an exception. Only effective if one of showAll, showException or showCaughtException are enabled. The option will be converted to aboolean
type. Default: false Group: formatting
-
showStreams
default LogEndpointBuilderFactory.LogEndpointBuilder showStreams(boolean showStreams)
Whether Camel should show stream bodies or not (eg such as java.io.InputStream). Beware if you enable this option then you may not be able later to access the message body as the stream have already been read by this logger. To remedy this you will have to use Stream Caching. The option is a:boolean
type. Default: false Group: formatting
-
showStreams
default LogEndpointBuilderFactory.LogEndpointBuilder showStreams(String showStreams)
Whether Camel should show stream bodies or not (eg such as java.io.InputStream). Beware if you enable this option then you may not be able later to access the message body as the stream have already been read by this logger. To remedy this you will have to use Stream Caching. The option will be converted to aboolean
type. Default: false Group: formatting
-
skipBodyLineSeparator
default LogEndpointBuilderFactory.LogEndpointBuilder skipBodyLineSeparator(boolean skipBodyLineSeparator)
Whether to skip line separators when logging the message body. This allows to log the message body in one line, setting this option to false will preserve any line separators from the body, which then will log the body as is. The option is a:boolean
type. Default: true Group: formatting
-
skipBodyLineSeparator
default LogEndpointBuilderFactory.LogEndpointBuilder skipBodyLineSeparator(String skipBodyLineSeparator)
Whether to skip line separators when logging the message body. This allows to log the message body in one line, setting this option to false will preserve any line separators from the body, which then will log the body as is. The option will be converted to aboolean
type. Default: true Group: formatting
-
style
default LogEndpointBuilderFactory.LogEndpointBuilder style(LogEndpointBuilderFactory.OutputStyle style)
Sets the outputs style to use. The option is a:org.apache.camel.support.processor.DefaultExchangeFormatter$OutputStyle
type. Default: Default Group: formatting
-
style
default LogEndpointBuilderFactory.LogEndpointBuilder style(String style)
Sets the outputs style to use. The option will be converted to aorg.apache.camel.support.processor.DefaultExchangeFormatter$OutputStyle
type. Default: Default Group: formatting
-
-