Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 34234 invoked from network); 16 May 2002 02:07:45 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 16 May 2002 02:07:45 -0000 Received: (qmail 522 invoked by uid 97); 16 May 2002 02:07:51 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 465 invoked by uid 97); 16 May 2002 02:07:50 -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 448 invoked by uid 50); 16 May 2002 02:07:48 -0000 Date: 16 May 2002 02:07:48 -0000 Message-ID: <20020516020748.447.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 9140] New: - SimpleLog uses getSystemResourceAsStream to load props X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9140 SimpleLog uses getSystemResourceAsStream to load props Summary: SimpleLog uses getSystemResourceAsStream to load props Product: Commons Version: 1.0 Final Platform: All OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Logging AssignedTo: commons-dev@jakarta.apache.org ReportedBy: jrr@silverstream.com The Log implementation, SimpleLog, uses getSystemResourceAsStream() to load the simplelog.properties file. Using getSystemResourceAsStream(), instead of something like this.getClass().getClassLoader().getResourceAsStream(), or even better, Thread.currentThread().getContextClassLoader().getResourceAsStream(), prevents the properties file from being deployed with an application. This forces the developer to put the properties file on the system classpath. Why was the decision made to only look on at the system classloader? The LogFactory does a nice job of finding it's properties with findClassLoader(). A similar implementation for SimpleLog would be great. -- To unsubscribe, e-mail: For additional commands, e-mail: