This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new 399b77e CAMEL-14150: Regen 399b77e is described below commit 399b77e46217089cd1d2a36333c1f5a8d63ffa46 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Nov 8 11:09:25 2019 +0100 CAMEL-14150: Regen --- .../endpoint/dsl/ExecEndpointBuilderFactory.java | 28 ++++++++++++++++++++++ .../modules/ROOT/pages/exec-component.adoc | 6 ++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/ExecEndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/ExecEndpointBuilderFactory.java index 07c7823..e5f5fe9 100644 --- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/ExecEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/ExecEndpointBuilderFactory.java @@ -17,6 +17,7 @@ package org.apache.camel.builder.endpoint.dsl; import javax.annotation.Generated; +import org.apache.camel.LoggingLevel; import org.apache.camel.builder.EndpointConsumerBuilder; import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; @@ -105,6 +106,33 @@ public interface ExecEndpointBuilderFactory { return this; } /** + * Logging level to be used for commands during execution. The default + * value is DEBUG. Possible values are TRACE, DEBUG, INFO, WARN, ERROR + * or OFF. (Values of ExecCommandLogLevelType enum). + * + * The option is a: <code>org.apache.camel.LoggingLevel</code> type. + * + * Group: producer + */ + default ExecEndpointBuilder commandLogLevel(LoggingLevel commandLogLevel) { + doSetProperty("commandLogLevel", commandLogLevel); + return this; + } + /** + * Logging level to be used for commands during execution. The default + * value is DEBUG. Possible values are TRACE, DEBUG, INFO, WARN, ERROR + * or OFF. (Values of ExecCommandLogLevelType enum). + * + * The option will be converted to a + * <code>org.apache.camel.LoggingLevel</code> type. + * + * Group: producer + */ + default ExecEndpointBuilder commandLogLevel(String commandLogLevel) { + doSetProperty("commandLogLevel", commandLogLevel); + return this; + } + /** * 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 diff --git a/docs/components/modules/ROOT/pages/exec-component.adoc b/docs/components/modules/ROOT/pages/exec-component.adoc index c286c28..86aba90 100644 --- a/docs/components/modules/ROOT/pages/exec-component.adoc +++ b/docs/components/modules/ROOT/pages/exec-component.adoc @@ -65,7 +65,7 @@ with the following path and query parameters: |=== -=== Query Parameters (10 parameters): +=== Query Parameters (11 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -74,6 +74,7 @@ with the following path and query parameters: | *args* (producer) | The arguments may be one or many whitespace-separated tokens. | | String | *binding* (producer) | A reference to a org.apache.commons.exec.ExecBinding in the Registry. | | ExecBinding | *commandExecutor* (producer) | A reference to a org.apache.commons.exec.ExecCommandExecutor in the Registry that customizes the command execution. The default command executor utilizes the commons-exec library, which adds a shutdown hook for every executed command. | | ExecCommandExecutor +| *commandLogLevel* (producer) | Logging level to be used for commands during execution. The default value is DEBUG. Possible values are TRACE, DEBUG, INFO, WARN, ERROR or OFF. (Values of ExecCommandLogLevelType enum) | DEBUG | LoggingLevel | *lazyStartProducer* (producer) | 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 [...] | *outFile* (producer) | The name of a file, created by the executable, that should be considered as its output. If no outFile is set, the standard output (stdout) of the executable will be used instead. | | String | *timeout* (producer) | The timeout, in milliseconds, after which the executable should be terminated. If execution has not completed within the timeout, the component will send a termination request. | | long @@ -152,6 +153,9 @@ the executable. If no stderr is written, the value is `null`. |`ExecBinding.EXEC_USE_STDERR_ON_EMPTY_STDOUT` |`boolean` |`in` |Indicates that when `stdout` is empty, this component will populate the Camel Message Body with `stderr`. This behavior is disabled (`false`) by default. + +|`ExecBinding.EXEC_COMMANDS_LOG_LEVEL` |`String` |`in` |Logging level to be used for commands during execution. The default value is DEBUG. +Possible values are TRACE, DEBUG, INFO, WARN, ERROR or OFF (Values of LoggingLevel enum) |======================================================================= == Message body