Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 18507 invoked from network); 3 Apr 2002 20:17:37 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 Apr 2002 20:17:37 -0000 Received: (qmail 19348 invoked by uid 97); 3 Apr 2002 20:17:38 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 19332 invoked by uid 97); 3 Apr 2002 20:17:37 -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 19321 invoked from network); 3 Apr 2002 20:17:37 -0000 X-Authentication-Warning: dyn-181.sfo.covalent.net: costinm owned process doing -bs Date: Wed, 3 Apr 2002 12:15:26 -0800 (PST) From: X-X-Sender: To: Jakarta Commons Developers List Subject: RE: [logging] Need interface... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, 3 Apr 2002, Richard Sitze wrote: > Perhaps what we need is pointers (in both components) to the logger > supporting the "other" philosophy: > > If you want "pull", use commons logging. > If you want "push" and IoC, use the Avalon LogKit. > > And again, DON'T propose trying to merge the two, their goals are > orthogonal. If you want 'push', use JMX and standard Bean setters. If you want 'pull', use JNDI or other naming-based accessors ( commons-logging getLog is a wrapper around the name-based system used by most loggers ). You can and should mix them - for things you want manageable ( or configurable by the caller/framework ) you must use push, and for things that you get from environment you use pull. You can use both in the same component - use pull for the initial value and setter to change it ( or pull and a listener ). If you want security, use sandbox and class loaders - it's the only way to protect you. Combined with a review of all the public interfaces that are exposed. Costin -- To unsubscribe, e-mail: For additional commands, e-mail: