--- apiVersion: v1 kind: List items: - apiVersion: v1 kind: ConfigMap metadata: labels: funktion.fabric8.io/kind: Connector provider: fabric8 project: connector-paxlogging version: 1.1.41 group: io.fabric8.funktion.connector name: paxlogging data: deployment.yml: | --- apiVersion: extensions/v1beta1 kind: Deployment metadata: labels: funktion.fabric8.io/kind: Subscription connector: paxlogging spec: replicas: 1 template: metadata: labels: funktion.fabric8.io/kind: Subscription connector: paxlogging spec: containers: - image: funktion/connector-paxlogging:1.1.41 name: connector schema.yml: | --- component: kind: component scheme: paxlogging syntax: paxlogging:appender title: OSGi PAX Logging description: The paxlogging component can be used in an OSGi environment to receive PaxLogging events and process them. label: monitoring deprecated: false async: false consumerOnly: true javaType: org.apache.camel.component.paxlogging.PaxLoggingComponent groupId: org.apache.camel artifactId: camel-paxlogging version: 2.18.1 componentProperties: bundleContext: kind: property type: object javaType: org.osgi.framework.BundleContext deprecated: false secret: false description: The OSGi BundleContext is automatic injected by Camel order: 0 properties: appender: kind: path group: consumer required: true type: string javaType: java.lang.String deprecated: false secret: false description: Appender is the name of the pax appender that need to be configured in the PaxLogging service configuration. order: 0 bridgeErrorHandler: kind: parameter group: consumer label: consumer type: boolean javaType: boolean optionalPrefix: consumer. deprecated: false secret: false defaultValue: false description: Allows for bridging the consumer to the Camel routing Error Handler which mean any exceptions occurred while the consumer is trying to pickup incoming messages or the likes will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions that will be logged at WARN/ERROR level and ignored. order: 1 exceptionHandler: kind: parameter group: consumer (advanced) label: consumer,advanced type: object javaType: org.apache.camel.spi.ExceptionHandler optionalPrefix: consumer. deprecated: false secret: false description: To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions that will be logged at WARN/ERROR level and ignored. order: 2 exchangePattern: kind: parameter group: consumer (advanced) label: consumer,advanced type: string javaType: org.apache.camel.ExchangePattern enum: - InOnly - RobustInOnly - InOut - InOptionalOut - OutOnly - RobustOutOnly - OutIn - OutOptionalIn deprecated: false secret: false description: Sets the exchange pattern when the consumer creates an exchange. order: 3 synchronous: kind: parameter group: advanced label: advanced type: boolean javaType: boolean deprecated: false secret: false defaultValue: false description: Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). order: 4 documentation.adoc: | [[Pax-Logging-PaxLoggingcomponent]] PaxLogging component ~~~~~~~~~~~~~~~~~~~~ *Available in Camel 2.6* The `paxlogging` component can be used in an OSGi environment to receive http://wiki.ops4j.org/display/paxlogging/Pax+Logging[PaxLogging] events and process them. [[Pax-Logging-Dependencies]] Dependencies ^^^^^^^^^^^^ Maven users need to add the following dependency to their `pom.xml` [source,xml] ------------------------------------------- org.apache.camel camel-paxlogging ${camel-version} ------------------------------------------- where `${camel-version`} must be replaced by the actual version of Camel (2.6.0 or higher). [[Pax-Logging-URIformat]] URI format ^^^^^^^^^^ [source,xml] ----------------------------- paxlogging:appender[?options] ----------------------------- where `appender` is the name of the pax appender that need to be configured in the PaxLogging service configuration. [[Pax-Logging-URIoptions]] URI options ^^^^^^^^^^^ // component options: START The OSGi PAX Logging component supports 1 options which are listed below. {% raw %} [width="100%",cols="2,1m,7",options="header"] |======================================================================= | Name | Java Type | Description | bundleContext | BundleContext | The OSGi BundleContext is automatic injected by Camel |======================================================================= {% endraw %} // component options: END // endpoint options: START The OSGi PAX Logging component supports 5 endpoint options which are listed below: {% raw %} [width="100%",cols="2,1,1m,1m,5",options="header"] |======================================================================= | Name | Group | Default | Java Type | Description | appender | consumer | | String | *Required* Appender is the name of the pax appender that need to be configured in the PaxLogging service configuration. | bridgeErrorHandler | consumer | false | boolean | Allows for bridging the consumer to the Camel routing Error Handler which mean any exceptions occurred while the consumer is trying to pickup incoming messages or the likes will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions that will be logged at WARN/ERROR level and ignored. | exceptionHandler | consumer (advanced) | | ExceptionHandler | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions that will be logged at WARN/ERROR level and ignored. | exchangePattern | consumer (advanced) | | ExchangePattern | Sets the exchange pattern when the consumer creates an exchange. | synchronous | advanced | false | boolean | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). |======================================================================= {% endraw %} // endpoint options: END [[Pax-Logging-Messagebody]] Message body ^^^^^^^^^^^^ The `in` message body will be set to the received PaxLoggingEvent. [[Pax-Logging-Exampleusage]] Example usage ^^^^^^^^^^^^^ [source,xml] ---------------------------------- ---------------------------------- Configuration: [source,java] ---------------------------------------------------------- log4j.rootLogger=INFO, out, osgi:VmLogAppender, osgi:camel ----------------------------------------------------------