Author: dkulp
Date: Mon Apr 14 12:22:27 2008
New Revision: 647942
URL: http://svn.apache.org/viewvc?rev=647942&view=rev
Log:
Merged revisions 647735 via svnmerge from
https://svn.apache.org/repos/asf/incubator/cxf/trunk
........
r647735 | bimargulies | 2008-04-14 07:30:28 -0400 (Mon, 14 Apr 2008) | 3 lines
Add some more javadoc to LogUtils. Declare setLogger to take a
Class<? extends AbstractDelegatingLogger>, which is only the truth.
........
Modified:
incubator/cxf/branches/2.0.x-fixes/ (props changed)
incubator/cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java
Propchange: incubator/cxf/branches/2.0.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified:
incubator/cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java?rev=647942&r1=647941&r2=647942&view=diff
==============================================================================
---
incubator/cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java
(original)
+++
incubator/cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java
Mon Apr 14 12:22:27 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 [EMAIL PROTECTED]
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 [EMAIL PROTECTED] #setLoggerClass(Class)} with a Class<?>
reference to the logger class.</li>
+ * </ul>
+ * CXF provides [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
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;
}