Return-Path: Delivered-To: apmail-incubator-felix-dev-archive@www.apache.org Received: (qmail 22879 invoked from network); 6 Jun 2006 15:09:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Jun 2006 15:09:19 -0000 Received: (qmail 19355 invoked by uid 500); 6 Jun 2006 15:09:18 -0000 Delivered-To: apmail-incubator-felix-dev-archive@incubator.apache.org Received: (qmail 19320 invoked by uid 500); 6 Jun 2006 15:09:18 -0000 Mailing-List: contact felix-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: felix-dev@incubator.apache.org Delivered-To: mailing list felix-dev@incubator.apache.org Received: (qmail 19309 invoked by uid 99); 6 Jun 2006 15:09:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2006 08:09:17 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.134.204.98] (HELO sausalito.ascert.com) (66.134.204.98) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2006 08:09:17 -0700 Received: from [10.20.0.70] ([10.20.0.70] unverified) by sausalito.ascert.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 6 Jun 2006 08:08:55 -0700 Message-ID: <44859A71.4090302@ascert.com> Date: Tue, 06 Jun 2006 16:08:33 +0100 From: Rob Walker User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: felix-dev@incubator.apache.org Subject: Re: Resource Bundles and logs References: <0DB05D80FA028644A1E960E015FCD71C39A1B9@Mail3SM.ueic.com> <200606011418.59295.niclas@hedhman.org> <1149177253.3686.24.camel@trout> <448539B5.6040604@ungoverned.org> In-Reply-To: <448539B5.6040604@ungoverned.org> Content-Type: multipart/alternative; boundary="------------080809070606060809080604" X-OriginalArrivalTime: 06 Jun 2006 15:08:55.0736 (UTC) FILETIME=[212F2B80:01C6897B] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------080809070606060809080604 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > So, until then there is no way to "hide" these errors. Perhaps there > is another approach too. One thing that we could do (in addition to > eventually using the log service) is to have a property that allows us > to disable diagnostic messages...otherwise, I don't know. In our app. this was our reasoning behind basing our logging on LOG4J - so we had very flexible "soft switches" to control and configured what got logged at runtime. I haven't looked at SLF4J yet - but I think it extends this concept further with a generic 'commons' style API that can also sit on top of other logging frameworks. We did a not very good "hack" to enable us to wire LOG4J in as an Osgi service - so I can't really recommend the actual approach we took for general usage - but the outcome has been pretty good, and it's given us a degree of flexibility around the level of diagnostic and application message noise which gets logged. In my mind, the model I envisaged that could be workable was: * a "logger" bundle that whilst supporting the standard OSGi LogService API for the very basic case, also offered a fairly rich LOG4J (maybe SLF4J now) set of API functionality Needless to say, time prevented me from creating this generalised "split brain" logging module, but I think it's feasible and has merit. And of course beyond this, there then opens up the possibility of remote log message or / logging access through things like JMX or simpler APIs (ours is actually a very simple XMLRPC based one that let's us pull back captured log messages for viewing on a client) Just some thoughts .... -- Rob --------------080809070606060809080604--