camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] branch master updated: CAMEL-7444: MDC logging now supports setting a pattern to allow to propagte custom keys that matches the pattern - aligned camel-cdi
Date Tue, 06 Aug 2019 06:15:35 GMT
This is an automated email from the ASF dual-hosted git repository.

acosentino 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 efd2836  CAMEL-7444: MDC logging now supports setting a pattern to allow to propagte
custom keys that matches the pattern - aligned camel-cdi
efd2836 is described below

commit efd283668edd2d47a420a92b0e8b8c5a72f75bed
Author: Andrea Cosentino <ancosen@gmail.com>
AuthorDate: Tue Aug 6 08:12:35 2019 +0200

    CAMEL-7444: MDC logging now supports setting a pattern to allow to propagte custom keys
that matches the pattern - aligned camel-cdi
---
 .../apache/camel/cdi/xml/CamelContextFactoryBean.java    | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/components/camel-cdi/src/main/java/org/apache/camel/cdi/xml/CamelContextFactoryBean.java
b/components/camel-cdi/src/main/java/org/apache/camel/cdi/xml/CamelContextFactoryBean.java
index c502954..6c189d1 100644
--- a/components/camel-cdi/src/main/java/org/apache/camel/cdi/xml/CamelContextFactoryBean.java
+++ b/components/camel-cdi/src/main/java/org/apache/camel/cdi/xml/CamelContextFactoryBean.java
@@ -105,6 +105,9 @@ public class CamelContextFactoryBean extends AbstractCamelContextFactoryBean<Def
 
     @XmlAttribute
     private String useMDCLogging;
+    
+    @XmlAttribute
+    private String mdcLoggingKeysPattern;
 
     @XmlAttribute
     private String useDataType;
@@ -874,4 +877,17 @@ public class CamelContextFactoryBean extends AbstractCamelContextFactoryBean<Def
     public void setErrorHandlers(List<ErrorHandlerDefinition> errorHandlers) {
         this.errorHandlers = errorHandlers;
     }
+
+	public String getMdcLoggingKeysPattern() {
+		return mdcLoggingKeysPattern;
+	}
+
+	public void setMdcLoggingKeysPattern(String mdcLoggingKeysPattern) {
+		this.mdcLoggingKeysPattern = mdcLoggingKeysPattern;
+	}
+
+	@Override
+	public String getMDCLoggingKeysPattern() {
+		return mdcLoggingKeysPattern;
+	}
 }


Mime
View raw message