Return-Path: Delivered-To: apmail-jakarta-log4j-dev-archive@apache.org Received: (qmail 60592 invoked from network); 24 May 2003 09:11:20 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 24 May 2003 09:11:20 -0000 Received: (qmail 3963 invoked by uid 97); 24 May 2003 09:13:42 -0000 Delivered-To: qmlist-jakarta-archive-log4j-dev@nagoya.betaversion.org Received: (qmail 3956 invoked from network); 24 May 2003 09:13:42 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 24 May 2003 09:13:42 -0000 Received: (qmail 60328 invoked by uid 500); 24 May 2003 09:11:18 -0000 Mailing-List: contact log4j-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@jakarta.apache.org Received: (qmail 60314 invoked from network); 24 May 2003 09:11:17 -0000 Received: from lsne-catv-dhcp-40-12.urbanet.ch (HELO mail.qos.ch) (80.238.40.12) by daedalus.apache.org with SMTP; 24 May 2003 09:11:17 -0000 Received: from eitan.qos.ch (unknown [192.168.1.4]) by mail.qos.ch (Postfix) with ESMTP id 84D141EC073 for ; Sat, 24 May 2003 11:28:05 +0200 (CEST) Message-Id: <5.2.0.9.0.20030524104807.0255ae10@mail.qos.ch> X-Sender: ceki@mail.qos.ch (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Sat, 24 May 2003 11:13:13 +0200 To: "Log4J Developers List" From: Ceki =?iso-8859-1?Q?G=FClc=FC?= Subject: Re: Hierarchical logging In-Reply-To: <20030524011821.4299.qmail@web10505.mail.yahoo.com> References: <5.2.0.9.0.20030523123847.02dbf1e0@mail.qos.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N At 06:18 PM 5/23/2003 -0700, Rodrigo de Salvo Braz wrote: >--- Ceki G=FClc=FC wrote: > >It is a good point, but suppose that detail level 1 is >DEBUG, then detail levels from 2 to 8 are INFO, and 9 >is DEBUG again. If the logger is at DEBUG level, we >would have > >* Info at level 1 >********* Info at level 9 > >wasting space for markers. This may be a problem if >you are actually showing the markers, as in the Emacs >visualization, although at some point people should be >using better visualizers anyway. The result still shows correct indentation levels. The fact that indentation levels 2-8 are empty should not matter. Or? > > MDC.incIndentationLevel(); > > logger.debug("Calculating all products from > > list."); > > logger.debug("do some logging."); > > logger.debug(Got all products of list."); > > MDC.decIndentationLevel(); > > > > We can leverage the existing log4j infrastructure > > with almost no > > structural changes and still provide the same > > service as the > > DetailLogger class. > >I agree that this is the best solution, but it >requires either extending MDC with or subclassing it >for that functionality (if subclassing MDC is possible >and advisable). It would probably require other >methods also, for logging collections or setting >options. Instead of leaving this for each user to do, >it would be better to have as a class in log4j. The >standardization would also favor things like having >Chainsaw to have the option of nesting visualization >at some point, with very little user setup. This is the kind of functionality that we would like to support within the log4j core. If we need to extend the MDC class to do that, then that's what we will do. >Are there any plans in that regard? I would like to >help. The plan is you and you subsume the plan. It is what you thought the plan was in the past, what you think the plan is currently, what you will think the plan will be in the future. When you think about what you might think the plan would be, that's still the plan. >Thanks, > >Rodrigo -- Ceki For log4j documentation consider "The complete log4j manual" ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp=20 --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-dev-help@jakarta.apache.org