Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 52824 invoked from network); 15 Jul 2003 15:23:58 -0000 Received: from uni-sb.de (134.96.252.33) by daedalus.apache.org with SMTP; 15 Jul 2003 15:23:58 -0000 Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.252.31]) by uni-sb.de (8.12.9/2003020700) with ESMTP id h6FFNx5j024381 for ; Tue, 15 Jul 2003 17:23:59 +0200 (CEST) Received: from mail.cs.uni-sb.de (mail.cs.uni-sb.de [134.96.254.200]) by cs.uni-sb.de (8.12.9/2003020700) with ESMTP id h6FFNnsl010660 for ; Tue, 15 Jul 2003 17:23:58 +0200 (CEST) Received: from activemath.org (klein.ags.uni-sb.de [134.96.236.41]) by mail.cs.uni-sb.de (8.12.9/2003061700) with ESMTP id h6FFNSfR019726 for ; Tue, 15 Jul 2003 17:23:29 +0200 (CEST) X-Authentication-Warning: email: Host klein.ags.uni-sb.de [134.96.236.41] claimed to be activemath.org Message-ID: <3F141C84.3000408@activemath.org> Date: Tue, 15 Jul 2003 17:23:48 +0200 From: Paul Libbrecht User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: fr, en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: [logging] [patch] making logging applet-friendly Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi there, To me Jakarta-logging is a saviour in the process of writing sandboxed things such as applets or webstart sandboxed applications: we dare use log4j for our servers but can turn to the very simple jakarta-logging when deploying over the client (log4j is a catastrophe for applets btw). Everything is fine except... the static initialization of SimpleLog.java wich calls a getProperty on a property that is not allowed... So here's my patch: catch the getProperty()'s possible throws by just considering the proprety is not there. Here's the method, line 161 of SimpleLog.java: private static String getStringProperty(String name) { String prop = null; try { prop = System.getProperty(name); } catch (Throwable t) {} // ignore... return (prop == null) ? simpleLogProps.getProperty(name) : prop; } Should I make a real unidiff patch for that ? thanks. Paul