Daniel Rall wrote:
Ryan, I've been wanting more elegant handling logging since I startedhttp://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/package-summary.html
working with the package. Rather than make a little tweak here and a
little tweak there, I think it's time for a more whole-sale approach.
What's the minimum number of class we'd have to include to make use of
Jakarta Commons Logging?
Ryan's Summary:
Looks like we need to import org.apache.commons.logging.Log and org.apache.commons.logging.LogFactory. With no further configuration, log messages now go to:
- Log4J if it is found in the classpath
- a java.util.logging.Logger if running on a JDK >= 1.4
- oblivion otherwise
This can be further configured with a system property, a META-INF/services/org.apache.commons.logging.LogFactory file, or a commons-logging.properties file.
Since we don't have multiple inheritance, should we stick this stuff in a utility class or on the XmlRpc base class?
--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net