You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by cs...@apache.org on 2017/02/24 13:40:39 UTC

cxf git commit: [CXF-7254] Use verbose logging by default in config and feature too

Repository: cxf
Updated Branches:
  refs/heads/master 65c1204ab -> f8651f511


[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/f8651f51
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/f8651f51
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/f8651f51

Branch: refs/heads/master
Commit: f8651f511b80616a8427b1e170135af772ffd050
Parents: 65c1204
Author: Christian Schneider <ch...@die-schneider.net>
Authored: Fri Feb 24 14:40:34 2017 +0100
Committer: Christian Schneider <ch...@die-schneider.net>
Committed: Fri Feb 24 14:40:34 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/f8651f51/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 ce39725..51d33e9 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);
@@ -106,7 +106,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/f8651f51/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 99bca6a..a57d7d3 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) {