Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 66895 invoked from network); 16 Oct 2007 16:05:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Oct 2007 16:05:25 -0000 Received: (qmail 67132 invoked by uid 500); 16 Oct 2007 16:05:11 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 67069 invoked by uid 500); 16 Oct 2007 16:05:11 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 67058 invoked by uid 99); 16 Oct 2007 16:05:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 09:05:11 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [68.230.240.8] (HELO eastrmmtao102.cox.net) (68.230.240.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 16:05:13 +0000 Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao102.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20071016160356.FSU3884.eastrmmtao102.cox.net@eastrmimpo02.cox.net> for ; Tue, 16 Oct 2007 12:03:56 -0400 Received: from mybook.local ([24.255.120.190]) by eastrmimpo02.cox.net with bizsmtp id 143u1Y00R46aSr40000000; Tue, 16 Oct 2007 12:03:54 -0400 Message-ID: <4714E0AB.9020107@reverycodes.com> Date: Tue, 16 Oct 2007 12:02:51 -0400 From: Vadim Gritsenko User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: AbstractLogEnabled... References: <4714D07D.3060402@reverycodes.com> <4714D9EB.6040902@apache.org> In-Reply-To: <4714D9EB.6040902@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Carsten Ziegeler wrote: > Vadim Gritsenko wrote: >> Hi, >> >> Ok I'm confused about AbstractLogEnabled business. Is it correct that >> instead of org.apache.avalon.framework.logger.AbstractLogEnabled we >> should be using org.apache.cocoon.util.AbstractLogEnabled [1]? >> >> If yes, why there are only 2 usages of the latter and around 100 usages >> of the former? :) >> >> Should I go ahead and do a replacement? Or may be we should discuss it >> first. For example, should there be an implementation of >> enableLogging(org.apache.avalon.framework.logger.Logger logger) method >> to provide backward compatibility. >> > No, I don't think so - one of the main ideas of this base class is to > avoid dependencies to Avalon. Ok - no enableLogging. But what about previous questions? To avoid dependency, switch should be made, isn't it? > Now, today, I think even this class can be removed as it creates an > unnecessary dependency to the module containing it. If you want to log, > just instantiate the commons logger in your own code and use it. But this adds a dependency on commons logging ;-) > If you > want to make it configurable, provide a setLogger() method like this > abstract class does. IMHO it is cleaner to use a base class. No need to replicate logging stuff everywhere - it is easier to extend from common base class (where it is possible / makes sense) Vadim