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.EndpointProducerBuilderBuilder for endpoint for the Log component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default LogEndpointBuilderFactory.AdvancedLogEndpointBuilderadvanced()default LogEndpointBuilderFactory.LogEndpointBuildergroupActiveOnly(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.LogEndpointBuildergroupActiveOnly(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.LogEndpointBuildergroupDelay(Long groupDelay)Set the initial delay for stats (in millis).default LogEndpointBuilderFactory.LogEndpointBuildergroupDelay(String groupDelay)Set the initial delay for stats (in millis).default LogEndpointBuilderFactory.LogEndpointBuildergroupInterval(Long groupInterval)If specified will group message stats by this time interval (in millis).default LogEndpointBuilderFactory.LogEndpointBuildergroupInterval(String groupInterval)If specified will group message stats by this time interval (in millis).default LogEndpointBuilderFactory.LogEndpointBuildergroupSize(Integer groupSize)An integer that specifies a group size for throughput logging.default LogEndpointBuilderFactory.LogEndpointBuildergroupSize(String groupSize)An integer that specifies a group size for throughput logging.default LogEndpointBuilderFactory.LogEndpointBuilderlazyStartProducer(boolean lazyStartProducer)Whether the producer should be started lazy (on the first message).default LogEndpointBuilderFactory.LogEndpointBuilderlazyStartProducer(String lazyStartProducer)Whether the producer should be started lazy (on the first message).default LogEndpointBuilderFactory.LogEndpointBuilderlevel(String level)Logging level to use.default LogEndpointBuilderFactory.LogEndpointBuilderlogMask(Boolean logMask)If true, mask sensitive information like password or passphrase in the log.default LogEndpointBuilderFactory.LogEndpointBuilderlogMask(String logMask)If true, mask sensitive information like password or passphrase in the log.default LogEndpointBuilderFactory.LogEndpointBuildermarker(String marker)An optional Marker name to use.default LogEndpointBuilderFactory.LogEndpointBuildermaxChars(int maxChars)Limits the number of characters logged per line.default LogEndpointBuilderFactory.LogEndpointBuildermaxChars(String maxChars)Limits the number of characters logged per line.default LogEndpointBuilderFactory.LogEndpointBuildermultiline(boolean multiline)If enabled then each information is outputted on a newline.default LogEndpointBuilderFactory.LogEndpointBuildermultiline(String multiline)If enabled then each information is outputted on a newline.default LogEndpointBuilderFactory.LogEndpointBuildershowAll(boolean showAll)Quick option for turning all options on.default LogEndpointBuilderFactory.LogEndpointBuildershowAll(String showAll)Quick option for turning all options on.default LogEndpointBuilderFactory.LogEndpointBuildershowAllProperties(boolean showAllProperties)Show all of the exchange properties (both internal and custom).default LogEndpointBuilderFactory.LogEndpointBuildershowAllProperties(String showAllProperties)Show all of the exchange properties (both internal and custom).default LogEndpointBuilderFactory.LogEndpointBuildershowBody(boolean showBody)Show the message body.default LogEndpointBuilderFactory.LogEndpointBuildershowBody(String showBody)Show the message body.default LogEndpointBuilderFactory.LogEndpointBuildershowBodyType(boolean showBodyType)Show the body Java type.default LogEndpointBuilderFactory.LogEndpointBuildershowBodyType(String showBodyType)Show the body Java type.default LogEndpointBuilderFactory.LogEndpointBuildershowCaughtException(boolean showCaughtException)If the exchange has a caught exception, show the exception message (no stack trace).default LogEndpointBuilderFactory.LogEndpointBuildershowCaughtException(String showCaughtException)If the exchange has a caught exception, show the exception message (no stack trace).default LogEndpointBuilderFactory.LogEndpointBuildershowException(boolean showException)If the exchange has an exception, show the exception message (no stacktrace).default LogEndpointBuilderFactory.LogEndpointBuildershowException(String showException)If the exchange has an exception, show the exception message (no stacktrace).default LogEndpointBuilderFactory.LogEndpointBuildershowExchangeId(boolean showExchangeId)Show the unique exchange ID.default LogEndpointBuilderFactory.LogEndpointBuildershowExchangeId(String showExchangeId)Show the unique exchange ID.default LogEndpointBuilderFactory.LogEndpointBuildershowExchangePattern(boolean showExchangePattern)Shows the Message Exchange Pattern (or MEP for short).default LogEndpointBuilderFactory.LogEndpointBuildershowExchangePattern(String showExchangePattern)Shows the Message Exchange Pattern (or MEP for short).default LogEndpointBuilderFactory.LogEndpointBuildershowFiles(boolean showFiles)If enabled Camel will output files.default LogEndpointBuilderFactory.LogEndpointBuildershowFiles(String showFiles)If enabled Camel will output files.default LogEndpointBuilderFactory.LogEndpointBuildershowFuture(boolean showFuture)If enabled Camel will on Future objects wait for it to complete to obtain the payload to be logged.default LogEndpointBuilderFactory.LogEndpointBuildershowFuture(String showFuture)If enabled Camel will on Future objects wait for it to complete to obtain the payload to be logged.default LogEndpointBuilderFactory.LogEndpointBuildershowHeaders(boolean showHeaders)Show the message headers.default LogEndpointBuilderFactory.LogEndpointBuildershowHeaders(String showHeaders)Show the message headers.default LogEndpointBuilderFactory.LogEndpointBuildershowProperties(boolean showProperties)Show the exchange properties (only custom).default LogEndpointBuilderFactory.LogEndpointBuildershowProperties(String showProperties)Show the exchange properties (only custom).default LogEndpointBuilderFactory.LogEndpointBuildershowStackTrace(boolean showStackTrace)Show the stack trace, if an exchange has an exception.default LogEndpointBuilderFactory.LogEndpointBuildershowStackTrace(String showStackTrace)Show the stack trace, if an exchange has an exception.default LogEndpointBuilderFactory.LogEndpointBuildershowStreams(boolean showStreams)Whether Camel should show stream bodies or not (eg such as java.io.InputStream).default LogEndpointBuilderFactory.LogEndpointBuildershowStreams(String showStreams)Whether Camel should show stream bodies or not (eg such as java.io.InputStream).default LogEndpointBuilderFactory.LogEndpointBuilderskipBodyLineSeparator(boolean skipBodyLineSeparator)Whether to skip line separators when logging the message body.default LogEndpointBuilderFactory.LogEndpointBuilderskipBodyLineSeparator(String skipBodyLineSeparator)Whether to skip line separators when logging the message body.default LogEndpointBuilderFactory.LogEndpointBuilderstyle(String style)Sets the outputs style to use.default LogEndpointBuilderFactory.LogEndpointBuilderstyle(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: <code>java.lang.Boolean</code> type. Default: true Group: producer- Parameters:
groupActiveOnly- the value to set- Returns:
- the dsl builder
-
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 a <code>java.lang.Boolean</code> type. Default: true Group: producer- Parameters:
groupActiveOnly- the value to set- Returns:
- the dsl builder
-
groupDelay
default LogEndpointBuilderFactory.LogEndpointBuilder groupDelay(Long groupDelay)
Set the initial delay for stats (in millis). The option is a: <code>java.lang.Long</code> type. Group: producer- Parameters:
groupDelay- the value to set- Returns:
- the dsl builder
-
groupDelay
default LogEndpointBuilderFactory.LogEndpointBuilder groupDelay(String groupDelay)
Set the initial delay for stats (in millis). The option will be converted to a <code>java.lang.Long</code> type. Group: producer- Parameters:
groupDelay- the value to set- Returns:
- the dsl builder
-
groupInterval
default LogEndpointBuilderFactory.LogEndpointBuilder groupInterval(Long groupInterval)
If specified will group message stats by this time interval (in millis). The option is a: <code>java.lang.Long</code> type. Group: producer- Parameters:
groupInterval- the value to set- Returns:
- the dsl builder
-
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 a <code>java.lang.Long</code> type. Group: producer- Parameters:
groupInterval- the value to set- Returns:
- the dsl builder
-
groupSize
default LogEndpointBuilderFactory.LogEndpointBuilder groupSize(Integer groupSize)
An integer that specifies a group size for throughput logging. The option is a: <code>java.lang.Integer</code> type. Group: producer- Parameters:
groupSize- the value to set- Returns:
- the dsl builder
-
groupSize
default LogEndpointBuilderFactory.LogEndpointBuilder groupSize(String groupSize)
An integer that specifies a group size for throughput logging. The option will be converted to a <code>java.lang.Integer</code> type. Group: producer- Parameters:
groupSize- the value to set- Returns:
- the dsl builder
-
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: <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer- the value to set- Returns:
- the dsl builder
-
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 a <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer- the value to set- Returns:
- the dsl builder
-
level
default LogEndpointBuilderFactory.LogEndpointBuilder level(String level)
Logging level to use. The default value is INFO. The option is a: <code>java.lang.String</code> type. Default: INFO Group: producer- Parameters:
level- the value to set- Returns:
- the dsl builder
-
logMask
default LogEndpointBuilderFactory.LogEndpointBuilder logMask(Boolean logMask)
If true, mask sensitive information like password or passphrase in the log. The option is a: <code>java.lang.Boolean</code> type. Group: producer- Parameters:
logMask- the value to set- Returns:
- the dsl builder
-
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 a <code>java.lang.Boolean</code> type. Group: producer- Parameters:
logMask- the value to set- Returns:
- the dsl builder
-
marker
default LogEndpointBuilderFactory.LogEndpointBuilder marker(String marker)
An optional Marker name to use. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
marker- the value to set- Returns:
- the dsl builder
-
maxChars
default LogEndpointBuilderFactory.LogEndpointBuilder maxChars(int maxChars)
Limits the number of characters logged per line. The option is a: <code>int</code> type. Default: 10000 Group: formatting- Parameters:
maxChars- the value to set- Returns:
- the dsl builder
-
maxChars
default LogEndpointBuilderFactory.LogEndpointBuilder maxChars(String maxChars)
Limits the number of characters logged per line. The option will be converted to a <code>int</code> type. Default: 10000 Group: formatting- Parameters:
maxChars- the value to set- Returns:
- the dsl builder
-
multiline
default LogEndpointBuilderFactory.LogEndpointBuilder multiline(boolean multiline)
If enabled then each information is outputted on a newline. The option is a: <code>boolean</code> type. Default: false Group: formatting- Parameters:
multiline- the value to set- Returns:
- the dsl builder
-
multiline
default LogEndpointBuilderFactory.LogEndpointBuilder multiline(String multiline)
If enabled then each information is outputted on a newline. The option will be converted to a <code>boolean</code> type. Default: false Group: formatting- Parameters:
multiline- the value to set- Returns:
- the dsl builder
-
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: <code>boolean</code> type. Default: false Group: formatting- Parameters:
showAll- the value to set- Returns:
- the dsl builder
-
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 a <code>boolean</code> type. Default: false Group: formatting- Parameters:
showAll- the value to set- Returns:
- the dsl builder
-
showAllProperties
default LogEndpointBuilderFactory.LogEndpointBuilder showAllProperties(boolean showAllProperties)
Show all of the exchange properties (both internal and custom). The option is a: <code>boolean</code> type. Default: false Group: formatting- Parameters:
showAllProperties- the value to set- Returns:
- the dsl builder
-
showAllProperties
default LogEndpointBuilderFactory.LogEndpointBuilder showAllProperties(String showAllProperties)
Show all of the exchange properties (both internal and custom). The option will be converted to a <code>boolean</code> type. Default: false Group: formatting- Parameters:
showAllProperties- the value to set- Returns:
- the dsl builder
-
showBody
default LogEndpointBuilderFactory.LogEndpointBuilder showBody(boolean showBody)
Show the message body. The option is a: <code>boolean</code> type. Default: true Group: formatting- Parameters:
showBody- the value to set- Returns:
- the dsl builder
-
showBody
default LogEndpointBuilderFactory.LogEndpointBuilder showBody(String showBody)
Show the message body. The option will be converted to a <code>boolean</code> type. Default: true Group: formatting- Parameters:
showBody- the value to set- Returns:
- the dsl builder
-
showBodyType
default LogEndpointBuilderFactory.LogEndpointBuilder showBodyType(boolean showBodyType)
Show the body Java type. The option is a: <code>boolean</code> type. Default: true Group: formatting- Parameters:
showBodyType- the value to set- Returns:
- the dsl builder
-
showBodyType
default LogEndpointBuilderFactory.LogEndpointBuilder showBodyType(String showBodyType)
Show the body Java type. The option will be converted to a <code>boolean</code> type. Default: true Group: formatting- Parameters:
showBodyType- the value to set- Returns:
- the dsl builder
-
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: <code>boolean</code> type. Default: false Group: formatting- Parameters:
showCaughtException- the value to set- Returns:
- the dsl builder
-
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 a <code>boolean</code> type. Default: false Group: formatting- Parameters:
showCaughtException- the value to set- Returns:
- the dsl builder
-
showException
default LogEndpointBuilderFactory.LogEndpointBuilder showException(boolean showException)
If the exchange has an exception, show the exception message (no stacktrace). The option is a: <code>boolean</code> type. Default: false Group: formatting- Parameters:
showException- the value to set- Returns:
- the dsl builder
-
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 a <code>boolean</code> type. Default: false Group: formatting- Parameters:
showException- the value to set- Returns:
- the dsl builder
-
showExchangeId
default LogEndpointBuilderFactory.LogEndpointBuilder showExchangeId(boolean showExchangeId)
Show the unique exchange ID. The option is a: <code>boolean</code> type. Default: false Group: formatting- Parameters:
showExchangeId- the value to set- Returns:
- the dsl builder
-
showExchangeId
default LogEndpointBuilderFactory.LogEndpointBuilder showExchangeId(String showExchangeId)
Show the unique exchange ID. The option will be converted to a <code>boolean</code> type. Default: false Group: formatting- Parameters:
showExchangeId- the value to set- Returns:
- the dsl builder
-
showExchangePattern
default LogEndpointBuilderFactory.LogEndpointBuilder showExchangePattern(boolean showExchangePattern)
Shows the Message Exchange Pattern (or MEP for short). The option is a: <code>boolean</code> type. Default: true Group: formatting- Parameters:
showExchangePattern- the value to set- Returns:
- the dsl builder
-
showExchangePattern
default LogEndpointBuilderFactory.LogEndpointBuilder showExchangePattern(String showExchangePattern)
Shows the Message Exchange Pattern (or MEP for short). The option will be converted to a <code>boolean</code> type. Default: true Group: formatting- Parameters:
showExchangePattern- the value to set- Returns:
- the dsl builder
-
showFiles
default LogEndpointBuilderFactory.LogEndpointBuilder showFiles(boolean showFiles)
If enabled Camel will output files. The option is a: <code>boolean</code> type. Default: false Group: formatting- Parameters:
showFiles- the value to set- Returns:
- the dsl builder
-
showFiles
default LogEndpointBuilderFactory.LogEndpointBuilder showFiles(String showFiles)
If enabled Camel will output files. The option will be converted to a <code>boolean</code> type. Default: false Group: formatting- Parameters:
showFiles- the value to set- Returns:
- the dsl builder
-
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: <code>boolean</code> type. Default: false Group: formatting- Parameters:
showFuture- the value to set- Returns:
- the dsl builder
-
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 a <code>boolean</code> type. Default: false Group: formatting- Parameters:
showFuture- the value to set- Returns:
- the dsl builder
-
showHeaders
default LogEndpointBuilderFactory.LogEndpointBuilder showHeaders(boolean showHeaders)
Show the message headers. The option is a: <code>boolean</code> type. Default: false Group: formatting- Parameters:
showHeaders- the value to set- Returns:
- the dsl builder
-
showHeaders
default LogEndpointBuilderFactory.LogEndpointBuilder showHeaders(String showHeaders)
Show the message headers. The option will be converted to a <code>boolean</code> type. Default: false Group: formatting- Parameters:
showHeaders- the value to set- Returns:
- the dsl builder
-
showProperties
default LogEndpointBuilderFactory.LogEndpointBuilder showProperties(boolean showProperties)
Show the exchange properties (only custom). Use showAllProperties to show both internal and custom properties. The option is a: <code>boolean</code> type. Default: false Group: formatting- Parameters:
showProperties- the value to set- Returns:
- the dsl builder
-
showProperties
default LogEndpointBuilderFactory.LogEndpointBuilder showProperties(String showProperties)
Show the exchange properties (only custom). Use showAllProperties to show both internal and custom properties. The option will be converted to a <code>boolean</code> type. Default: false Group: formatting- Parameters:
showProperties- the value to set- Returns:
- the dsl builder
-
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: <code>boolean</code> type. Default: false Group: formatting- Parameters:
showStackTrace- the value to set- Returns:
- the dsl builder
-
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 a <code>boolean</code> type. Default: false Group: formatting- Parameters:
showStackTrace- the value to set- Returns:
- the dsl builder
-
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: <code>boolean</code> type. Default: false Group: formatting- Parameters:
showStreams- the value to set- Returns:
- the dsl builder
-
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 a <code>boolean</code> type. Default: false Group: formatting- Parameters:
showStreams- the value to set- Returns:
- the dsl builder
-
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: <code>boolean</code> type. Default: true Group: formatting- Parameters:
skipBodyLineSeparator- the value to set- Returns:
- the dsl builder
-
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 a <code>boolean</code> type. Default: true Group: formatting- Parameters:
skipBodyLineSeparator- the value to set- Returns:
- the dsl builder
-
style
default LogEndpointBuilderFactory.LogEndpointBuilder style(LogEndpointBuilderFactory.OutputStyle style)
Sets the outputs style to use. The option is a: <code>org.apache.camel.support.processor.DefaultExchangeFormatter$OutputStyle</code> type. Default: Default Group: formatting- Parameters:
style- the value to set- Returns:
- the dsl builder
-
style
default LogEndpointBuilderFactory.LogEndpointBuilder style(String style)
Sets the outputs style to use. The option will be converted to a <code>org.apache.camel.support.processor.DefaultExchangeFormatter$OutputStyle</code> type. Default: Default Group: formatting- Parameters:
style- the value to set- Returns:
- the dsl builder
-
-