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
Modifier and TypeMethodDescriptionadvanced()
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.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.groupDelay
(Long groupDelay) Set the initial delay for stats (in millis).groupDelay
(String groupDelay) Set the initial delay for stats (in millis).groupInterval
(Long groupInterval) If specified will group message stats by this time interval (in millis).groupInterval
(String groupInterval) If specified will group message stats by this time interval (in millis).An integer that specifies a group size for throughput logging.An integer that specifies a group size for throughput logging.Logging level to use.If true, mask sensitive information like password or passphrase in the log.If true, mask sensitive information like password or passphrase in the log.An optional Marker name to use.maxChars
(int maxChars) Limits the number of characters logged per line.Limits the number of characters logged per line.multiline
(boolean multiline) If enabled then each information is outputted on a newline.If enabled then each information is outputted on a newline.plain
(boolean plain) If enabled only the body will be printed out.If enabled only the body will be printed out.showAll
(boolean showAll) Quick option for turning all options on.Quick option for turning all options on.showAllProperties
(boolean showAllProperties) Show all of the exchange properties (both internal and custom).showAllProperties
(String showAllProperties) Show all of the exchange properties (both internal and custom).showBody
(boolean showBody) Show the message body.Show the message body.showBodyType
(boolean showBodyType) Show the body Java type.showBodyType
(String showBodyType) Show the body Java type.showCachedStreams
(boolean showCachedStreams) Whether Camel should show cached stream bodies or not (org.apache.camel.StreamCache).showCachedStreams
(String showCachedStreams) Whether Camel should show cached stream bodies or not (org.apache.camel.StreamCache).showCaughtException
(boolean showCaughtException) If the exchange has a caught exception, show the exception message (no stack trace).showCaughtException
(String showCaughtException) If the exchange has a caught exception, show the exception message (no stack trace).showException
(boolean showException) If the exchange has an exception, show the exception message (no stacktrace).showException
(String showException) If the exchange has an exception, show the exception message (no stacktrace).showExchangeId
(boolean showExchangeId) Show the unique exchange ID.showExchangeId
(String showExchangeId) Show the unique exchange ID.showExchangePattern
(boolean showExchangePattern) Shows the Message Exchange Pattern (or MEP for short).showExchangePattern
(String showExchangePattern) Shows the Message Exchange Pattern (or MEP for short).showFiles
(boolean showFiles) If enabled Camel will output files.If enabled Camel will output files.showFuture
(boolean showFuture) If enabled Camel will on Future objects wait for it to complete to obtain the payload to be logged.showFuture
(String showFuture) If enabled Camel will on Future objects wait for it to complete to obtain the payload to be logged.showHeaders
(boolean showHeaders) Show the message headers.showHeaders
(String showHeaders) Show the message headers.showProperties
(boolean showProperties) Show the exchange properties (only custom).showProperties
(String showProperties) Show the exchange properties (only custom).showStackTrace
(boolean showStackTrace) Show the stack trace, if an exchange has an exception.showStackTrace
(String showStackTrace) Show the stack trace, if an exchange has an exception.showStreams
(boolean showStreams) Whether Camel should show stream bodies or not (eg such as java.io.InputStream).showStreams
(String showStreams) Whether Camel should show stream bodies or not (eg such as java.io.InputStream).skipBodyLineSeparator
(boolean skipBodyLineSeparator) Whether to skip line separators when logging the message body.skipBodyLineSeparator
(String skipBodyLineSeparator) Whether to skip line separators when logging the message body.sourceLocationLoggerName
(boolean sourceLocationLoggerName) If enabled then the source location of where the log endpoint is used in Camel routes, would be used as logger name, instead of the given name.sourceLocationLoggerName
(String sourceLocationLoggerName) If enabled then the source location of where the log endpoint is used in Camel routes, would be used as logger name, instead of the given name.Sets the outputs style to use.style
(org.apache.camel.support.processor.DefaultExchangeFormatter.OutputStyle style) Sets the outputs style to use.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
advanced
-
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
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
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
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
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
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
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
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
-
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
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
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
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
-
plain
If enabled only the body will be printed out. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
plain
- the value to set- Returns:
- the dsl builder
-
plain
If enabled only the body will be printed out. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
plain
- the value to set- Returns:
- the dsl builder
-
sourceLocationLoggerName
default LogEndpointBuilderFactory.LogEndpointBuilder sourceLocationLoggerName(boolean sourceLocationLoggerName) If enabled then the source location of where the log endpoint is used in Camel routes, would be used as logger name, instead of the given name. However, if the source location is disabled or not possible to resolve then the existing logger name will be used. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
sourceLocationLoggerName
- the value to set- Returns:
- the dsl builder
-
sourceLocationLoggerName
default LogEndpointBuilderFactory.LogEndpointBuilder sourceLocationLoggerName(String sourceLocationLoggerName) If enabled then the source location of where the log endpoint is used in Camel routes, would be used as logger name, instead of the given name. However, if the source location is disabled or not possible to resolve then the existing logger name will be used. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
sourceLocationLoggerName
- the value to set- Returns:
- the dsl builder
-
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
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
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
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
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
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
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
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
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
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
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
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
-
showCachedStreams
Whether Camel should show cached stream bodies or not (org.apache.camel.StreamCache). The option is a: <code>boolean</code> type. Default: true Group: formatting- Parameters:
showCachedStreams
- the value to set- Returns:
- the dsl builder
-
showCachedStreams
Whether Camel should show cached stream bodies or not (org.apache.camel.StreamCache). The option will be converted to a <code>boolean</code> type. Default: true Group: formatting- Parameters:
showCachedStreams
- 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
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
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
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
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: false 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: false Group: formatting- Parameters:
showExchangePattern
- the value to set- Returns:
- the dsl builder
-
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
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
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
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
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
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
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
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
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
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
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
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(org.apache.camel.support.processor.DefaultExchangeFormatter.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
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
-