Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 10F43200C25 for ; Fri, 24 Feb 2017 14:40:42 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0F967160B69; Fri, 24 Feb 2017 13:40:42 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5A3C7160B5C for ; Fri, 24 Feb 2017 14:40:41 +0100 (CET) Received: (qmail 73190 invoked by uid 500); 24 Feb 2017 13:40:40 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 73162 invoked by uid 99); 24 Feb 2017 13:40:40 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2017 13:40:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 66B74DFD9E; Fri, 24 Feb 2017 13:40:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cschneider@apache.org To: commits@cxf.apache.org Message-Id: <13503be92b3b4d609c31b504c50d0215@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: cxf git commit: [CXF-7254] Use verbose logging by default in config and feature too Date: Fri, 24 Feb 2017 13:40:39 +0000 (UTC) archived-at: Fri, 24 Feb 2017 13:40:42 -0000 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 Authored: Fri Feb 24 14:40:34 2017 +0100 Committer: Christian Schneider 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) {