Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
-
Operating System: All
Platform: All
-
9140
Description
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.