cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject [2/4] cxf git commit: [CXF-7254] Use verbose logging by default in config and feature too
Date Fri, 24 Feb 2017 14:04:39 GMT
[CXF-7254] Use verbose logging by default in config and feature too


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

Branch: refs/heads/3.1.x-fixes
Commit: ee986f5bb8a1a6eb6206da4ad52c073010ad893e
Parents: 8a9a0fc
Author: Christian Schneider <chris@die-schneider.net>
Authored: Fri Feb 24 14:40:34 2017 +0100
Committer: Christian Schneider <chris@die-schneider.net>
Committed: Fri Feb 24 14:48:46 2017 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/ext/logging/LoggingFeature.java | 4 ++--
 .../src/main/java/org/apache/cxf/ext/logging/osgi/Activator.java | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ee986f5b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingFeature.java
----------------------------------------------------------------------
diff --git a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingFeature.java
b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingFeature.java
index b4c46c5..d27d3a3 100644
--- a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingFeature.java
+++ b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingFeature.java
@@ -53,7 +53,7 @@ public class LoggingFeature extends AbstractFeature {
     private PrettyLoggingFilter prettyFilter;
 
     public LoggingFeature() {
-        this.sender = new Slf4jEventSender();
+        this.sender = new Slf4jVerboseEventSender();
         prettyFilter = new PrettyLoggingFilter(sender);
         in = new LoggingInInterceptor(prettyFilter);
         out = new LoggingOutInterceptor(prettyFilter);
@@ -105,7 +105,7 @@ public class LoggingFeature extends AbstractFeature {
     }
     
     public void setVerbose(boolean verbose) {
-        sender = verbose ? new Slf4jVerboseEventSender() : new Slf4jEventSender();
+        this.sender = verbose ? new Slf4jVerboseEventSender() : new Slf4jEventSender();
         this.prettyFilter.setNext(sender);
     }
 }

http://git-wip-us.apache.org/repos/asf/cxf/blob/ee986f5b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/osgi/Activator.java
----------------------------------------------------------------------
diff --git a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/osgi/Activator.java
b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/osgi/Activator.java
index 0548b17..93670de 100644
--- a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/osgi/Activator.java
+++ b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/osgi/Activator.java
@@ -67,7 +67,7 @@ public class Activator implements BundleActivator {
             LOG.info("CXF message logging feature " + (enabled ? "enabled" : "disabled"));
             Integer limit = Integer.valueOf(getValue(config, "limit", "65536"));
             Boolean pretty = Boolean.valueOf(getValue(config, "pretty", "false"));
-            Boolean verbose = Boolean.valueOf(getValue(config, "verbose", "false"));
+            Boolean verbose = Boolean.valueOf(getValue(config, "verbose", "true"));
             Long inMemThreshold = Long.valueOf(getValue(config, "inMemThresHold", "-1"));
 
             if (limit != null) {


Mime
View raw message