Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4936E87AF for ; Mon, 5 Sep 2011 13:44:39 +0000 (UTC) Received: (qmail 20892 invoked by uid 500); 5 Sep 2011 13:44:38 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 20820 invoked by uid 500); 5 Sep 2011 13:44:38 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 20810 invoked by uid 99); 5 Sep 2011 13:44:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 13:44:37 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 13:44:36 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6857D5923B for ; Mon, 5 Sep 2011 13:44:16 +0000 (UTC) Date: Mon, 5 Sep 2011 13:44:16 +0000 (UTC) From: "Christian Schneider (JIRA)" To: dev@camel.apache.org Message-ID: <2058497240.17191.1315230256422.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1629078622.16840.1315210750006.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CAMEL-4414) CamelLogger should not be a Processor and a log class at the same time and it should not have ServiceSupport MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-4414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schneider resolved CAMEL-4414. ---------------------------------------- Resolution: Fixed > CamelLogger should not be a Processor and a log class at the same time and it should not have ServiceSupport > ------------------------------------------------------------------------------------------------------------ > > Key: CAMEL-4414 > URL: https://issues.apache.org/jira/browse/CAMEL-4414 > Project: Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.8.0 > Reporter: Christian Schneider > Assignee: Christian Schneider > Fix For: 2.9.0 > > > CamelLogger currently does too many things. > 1. It is a log class that stores a log level and a slf4j logger. It suppports some methods for logging with the set level > 2. It is a processor for logging exchanges > 3. It extends ServiceSupport even though it has no services (is apparently needed fro ThroughputLogger > So what I propose is: > - Leave the current class as is but mark as @Deprecated > - Introduce a new CamelLogger that only supports 1. > - Introduce a CamelLogProcessor in processor that only supports 2. > - Make ThroughputLogger not extend CamelLogger but instead delegate to the new CamelLogger -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira