You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by cr...@apache.org on 2001/12/03 03:59:10 UTC

cvs commit: jakarta-commons-sandbox/logging/src/java/org/apache/commons/logging package.html

craigmcc    01/12/02 18:59:10

  Modified:    logging/src/java/org/apache/commons/logging package.html
  Log:
  Clarify the behavior used to select the default Log implementation when
  you do not specify an implementation class as a system property.
  
  Revision  Changes    Path
  1.2       +17 -3     jakarta-commons-sandbox/logging/src/java/org/apache/commons/logging/package.html
  
  Index: package.html
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/logging/src/java/org/apache/commons/logging/package.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- package.html	2001/12/03 02:45:53	1.1
  +++ package.html	2001/12/03 02:59:10	1.2
  @@ -32,10 +32,24 @@
   <ul>
   <li><code>org.apache.commons.logging.log</code> - Fully qualified class name
       of the <code>org.apache.commons.logging.Log</code> implementation to be
  -    used.  If not specified, defaults to
  -    <code>org.apache.commons.logging.NoOpLog</code> (which causes any logged
  -    messages to be thrown away.</li>
  +    used.</li>
   </ul>
  +
  +<p>If you do not specify the class name of the Log implementation to use, the
  +following algorithm is applied:</p>
  +<ul>
  +<li>If Log4J is available, return an instance of
  +    <a href="Log4JCategoryLog.html">Log4JCategoryLog</a> that wraps a
  +    Log4J Category instance of the specified name.</li>
  +<!--
  +<li>If the JDK 1.4 logging APIs are available, return an instance
  +    of <a href="JdkLogger.html">JdkLogger</a> that wraps an instance of
  +    <code>java.util.logging.Logger</code> for the specified name.</li>
  +-->
  +<li>Return an instance of <a href="NoOpLog.html">NoOpLog</a> that
  +    throws away all logged output.</li>
  +</ul>
  +
   
   <p>Additionally, each individual <a href="Log.html">Log</a> implementation may
   support its own configuration properties.  These will be documented in the
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>