cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Adding default constructors to ext loggers
Date Wed, 17 Aug 2016 12:50:16 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 8587301fb -> 24af06e58


Adding default constructors to ext loggers


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/24af06e5
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/24af06e5
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/24af06e5

Branch: refs/heads/master
Commit: 24af06e5802bd4e07f42d5b04ad96cd2df67018b
Parents: 8587301
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Wed Aug 17 13:49:59 2016 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Wed Aug 17 13:49:59 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/cxf/ext/logging/LoggingInInterceptor.java   | 5 +++++
 .../java/org/apache/cxf/ext/logging/LoggingOutInterceptor.java  | 5 +++++
 2 files changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/24af06e5/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingInInterceptor.java
----------------------------------------------------------------------
diff --git a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingInInterceptor.java
b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingInInterceptor.java
index d05d0d1..4c5760e 100644
--- a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingInInterceptor.java
+++ b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingInInterceptor.java
@@ -26,6 +26,7 @@ import org.apache.cxf.common.util.StringUtils;
 import org.apache.cxf.ext.logging.event.DefaultLogEventMapper;
 import org.apache.cxf.ext.logging.event.LogEvent;
 import org.apache.cxf.ext.logging.event.LogEventSender;
+import org.apache.cxf.ext.logging.slf4j.Slf4jEventSender;
 import org.apache.cxf.interceptor.Fault;
 import org.apache.cxf.io.CachedOutputStream;
 import org.apache.cxf.io.CachedWriter;
@@ -38,6 +39,10 @@ import org.apache.cxf.phase.Phase;
 @NoJSR250Annotations
 public class LoggingInInterceptor extends AbstractLoggingInterceptor {
 
+    public LoggingInInterceptor() {
+        this(new Slf4jEventSender());
+    }
+    
     public LoggingInInterceptor(LogEventSender sender) {
         super(Phase.PRE_INVOKE, sender);
     }

http://git-wip-us.apache.org/repos/asf/cxf/blob/24af06e5/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingOutInterceptor.java
----------------------------------------------------------------------
diff --git a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingOutInterceptor.java
b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingOutInterceptor.java
index 94858c1..ff4ff2a 100644
--- a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingOutInterceptor.java
+++ b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingOutInterceptor.java
@@ -29,6 +29,7 @@ import org.apache.cxf.common.util.StringUtils;
 import org.apache.cxf.ext.logging.event.DefaultLogEventMapper;
 import org.apache.cxf.ext.logging.event.LogEvent;
 import org.apache.cxf.ext.logging.event.LogEventSender;
+import org.apache.cxf.ext.logging.slf4j.Slf4jEventSender;
 import org.apache.cxf.interceptor.Fault;
 import org.apache.cxf.interceptor.StaxOutInterceptor;
 import org.apache.cxf.io.CacheAndWriteOutputStream;
@@ -43,6 +44,10 @@ import org.apache.cxf.phase.Phase;
 @NoJSR250Annotations
 public class LoggingOutInterceptor extends AbstractLoggingInterceptor {
 
+    public LoggingOutInterceptor() {
+        this(new Slf4jEventSender());
+    }
+    
     public LoggingOutInterceptor(LogEventSender sender) {
         super(Phase.PRE_STREAM, sender);
         addBefore(StaxOutInterceptor.class.getName());


Mime
View raw message