cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r647735 - /incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java
Date Mon, 14 Apr 2008 11:30:30 GMT
Author: bimargulies
Date: Mon Apr 14 04:30:28 2008
New Revision: 647735

URL: http://svn.apache.org/viewvc?rev=647735&view=rev
Log:
Add some more javadoc to LogUtils. Declare setLogger to take a 
Class<? extends AbstractDelegatingLogger>, which is only the truth.	

Modified:
    incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java

Modified: incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java?rev=647735&r1=647734&r2=647735&view=diff
==============================================================================
--- incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java
(original)
+++ incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java
Mon Apr 14 04:30:28 2008
@@ -37,6 +37,16 @@
 
 /**
  * A container for static utility methods related to logging.
+ * By default, CXF logs to java.util.logging. An application can change this. To log to another
system, the
+ * application must provide an object that extends {@link AbstractDelegatingLogger}, and
advertise that class
+ * via one of the following mechanisms:
+ * <ul>
+ * <li>Create a file, in the classpath, named META-INF/cxf/org.apache.cxf.logger. 
+ * This file should contain the fully-qualified name
+ * of the class.</li>
+ * <li>Call {@link #setLoggerClass(Class)} with a Class<?> reference to the logger
class.</li>
+ * </ul>
+ * CXF provides {@link Log4jLogger} to use log4j instead of java.util.logging.
  */
 public final class LogUtils {
     public static final String KEY = "org.apache.cxf.Logger";
@@ -78,9 +88,10 @@
     
     
     /**
+     * Specify a logger class that inherits from {@link AbstractDelegatingLogger}.
      * Enable users to use their own logger implementation.
      */
-    public static void setLoggerClass(Class<?> cls) {
+    public static void setLoggerClass(Class<? extends AbstractDelegatingLogger> cls)
{
         loggerClass = cls;
     }
 



Mime
View raw message