Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 17772 invoked from network); 9 Nov 2004 21:26:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Nov 2004 21:26:24 -0000 Received: (qmail 2436 invoked by uid 500); 9 Nov 2004 21:25:50 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 2354 invoked by uid 500); 9 Nov 2004 21:25:49 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@geronimo.apache.org Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 2308 invoked by uid 99); 9 Nov 2004 21:25:49 -0000 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=INVALID_DATE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [66.187.1.5] (HELO mail.chicagonet.net) (66.187.1.5) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 09 Nov 2004 13:25:47 -0800 Received: from md26260nt (webmail.chicagonet.net [66.187.1.61] dmfarb@chicagonet.net) by mail.chicagonet.net with SMTP (IOA-IPAD 4.01/64) id 30ZOE00 for ; Tue, 09 Nov 2004 15:25:10 -0500 Date: Tue, 09 Nov 2004 15:24:47 -0000 From: "David Farb" X-Mailer: EMURL 2.0 MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: [BULK] Re: Logging problems Message-ID: <1109104152447.0.0900505450@chicagonet.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Jeremy Boynes wrote: > We would need to provide a solution though for things that aren't > GBeans. Perhaps a way that a GBean could create a "child" logger of the > one it had that it could inject into other things and recursively down? One of the benefits of the current scheme is that each class, whether it is a GBean or not, can have its logging level controlled individually. If all classes used in a GBean are controlled by the same logger, what happens to instances of classes shared by several GBeans? E.g. How do you control logging of o.a.g.security.ContextManager (assuming it had a log and you wanted to control it)? If the GBean controls logging, and only diagnostics from some non-GBean instance is wanted, is the only choice to get diagnostics from everything that GBean uses? For example, how would the logging in o.a.g.network.protocol.SocketProtocol be done? This class creats a new, controllable, log for each instance. And it is NOT a GBean.