Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 30769 invoked from network); 29 Nov 2004 11:40:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Nov 2004 11:40:12 -0000 Received: (qmail 74409 invoked by uid 500); 29 Nov 2004 11:39:59 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 74381 invoked by uid 500); 29 Nov 2004 11:39:58 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 74357 invoked by uid 99); 29 Nov 2004 11:39:58 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of oliver.zeigermann@gmail.com designates 64.233.184.196 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.196) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 29 Nov 2004 03:39:57 -0800 Received: by wproxy.gmail.com with SMTP id 69so683582wri for ; Mon, 29 Nov 2004 03:39:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=YirwIZHx/9lXOtk16wNBvLLqE3MXZeO6aSIg9/t7Xp9rA7YmBttqwaGdneL9kdtlHzmVmHVoPYhr7slMFRkGsNpkg7GNm5IimjmfAMyUQyp7u/1vtXDIKWHNv+ikac2240rWWlROYtgTkGU06nr1R6U4RaHKYEtJjDHbIu6jp/0= Received: by 10.54.6.78 with SMTP id 78mr1377347wrf; Mon, 29 Nov 2004 03:39:53 -0800 (PST) Received: by 10.54.11.53 with HTTP; Mon, 29 Nov 2004 03:39:53 -0800 (PST) Message-ID: <9da4f45204112903393fbb60a5@mail.gmail.com> Date: Mon, 29 Nov 2004 12:39:53 +0100 From: Oliver Zeigermann Reply-To: ozeigermann@apache.org To: Jakarta Commons Developers List Subject: Re: [transaction] improved logging interface. In-Reply-To: <41AAEEF0.3060000@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <41A5DBD1.5060109@apache.org> <9da4f452041126145356703089@mail.gmail.com> <41AAEEF0.3060000@apache.org> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Mon, 29 Nov 2004 10:42:08 +0100, Stefan L=FCtzkendorf wrote: > Ok, this would do it too. >=20 > The other way would it make nicer, but you are right it is not required > absolutly. (One advantage would be that the parametrized version coulkd > use a more efficient type of string processing) If we are logging finest performance wouldn't be our major goal and if we are not the string concatenation wouldn't be done in the first place. So IMHO there is little need for a parameterized version, is there? =20 > Than we should do the isXXXEnabled tests propertly. Because the most > logging is "fine", "finer" or "finest" and we sould avoid this in an > working environment. Agreed! Oliver =20 > I'll do this next time. >=20 > Regards, Stefan >=20 >=20 >=20 > Oliver Zeigermann wrote: >=20 > > I thought the standard way to handle this is to guard the log > > statements with checks if the log level is enabled like: > > > > if (isFineEnabled()) > > logFine(anyObject1 + "any string" + anyObject2); > > > > which already is possible with LoggerFacade. This would make the > > extension obsolete... > > > > Oliver > > > > On Thu, 25 Nov 2004 14:19:13 +0100, Stefan L=FCtzkendorf > > wrote: > > > >>Hello Oliver, > >> > >>I would like to improve the LoggerFacade interface with methods like, > >> > >>logFiner(String message, Object param1); > >>logFiner(String message, Object param1, Object param2); > >>logFine(String message, Object param1); > >>... > >> > >>to avoid the frequently used calls like > >>logFine(anyObject1 + "any string" + anyObject2); > >> > >>This would reduce the overhead if logging is disabled. > >> > >>Changing the interfaces before the first release would be good, I think= . > >>What do you think? > >> > >>Regards, Stefan > >> > >>-- > >>Stefan L=FCtzkendorf -- luetzkendorf@apache.org > >> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > >>For additional commands, e-mail: commons-dev-help@jakarta.apache.org > >> > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > > > > >=20 > -- >=20 >=20 > Stefan L=FCtzkendorf -- luetzkendorf@apache.org >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org