Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 96725 invoked from network); 24 Jan 2002 19:02:40 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 24 Jan 2002 19:02:40 -0000 Received: (qmail 13614 invoked by uid 97); 24 Jan 2002 19:02:41 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 13596 invoked by uid 97); 24 Jan 2002 19:02:41 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 13585 invoked by uid 97); 24 Jan 2002 19:02:41 -0000 Date: 24 Jan 2002 19:02:35 -0000 Message-ID: <20020124190235.37530.qmail@icarus.apache.org> From: rdonkin@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/logging/src/java/org/apache/commons/logging LogKitLogger.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N rdonkin 02/01/24 11:02:35 Modified: logging/src/java/org/apache/commons/logging LogKitLogger.java Log: Improved java doc comments Revision Changes Path 1.3 +28 -22 jakarta-commons/logging/src/java/org/apache/commons/logging/LogKitLogger.java Index: LogKitLogger.java =================================================================== RCS file: /home/cvs/jakarta-commons/logging/src/java/org/apache/commons/logging/LogKitLogger.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- LogKitLogger.java 17 Jan 2002 01:47:49 -0000 1.2 +++ LogKitLogger.java 24 Jan 2002 19:02:35 -0000 1.3 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/logging/src/java/org/apache/commons/logging/LogKitLogger.java,v 1.2 2002/01/17 01:47:49 craigmcc Exp $ - * $Revision: 1.2 $ - * $Date: 2002/01/17 01:47:49 $ + * $Header: /home/cvs/jakarta-commons/logging/src/java/org/apache/commons/logging/LogKitLogger.java,v 1.3 2002/01/24 19:02:35 rdonkin Exp $ + * $Revision: 1.3 $ + * $Date: 2002/01/24 19:02:35 $ * * ==================================================================== * @@ -66,11 +66,17 @@ import org.apache.log.Hierarchy; /** - *

Wrapper for jakarta-avalon-logkit logging system.

+ *

Implementation of org.apache.commons.logging.Log + * that wraps the jakarta-avalon-logkit + * logging system. Configuration of LogKit is left to the user.

+ * + *

LogKit accepts only String messages. + * Therefore, this implementation converts object messages into strings + * by called their toString() method before logging them.

* * @author Robert Burrell Donkin * - * @version $Id: LogKitLogger.java,v 1.2 2002/01/17 01:47:49 craigmcc Exp $ + * @version $Id: LogKitLogger.java,v 1.3 2002/01/24 19:02:35 rdonkin Exp $ */ public final class LogKitLogger implements Log { @@ -101,7 +107,7 @@ /** - * Log to LogKit logger. + * Log message to LogKit logger with DEBUG priority. */ public void debug(Object message) { if (message != null) { @@ -111,7 +117,7 @@ /** - * Log to LogKit logger. + * Log error to LogKit logger with DEBUG priority. */ public void debug(Object message, Throwable t) { if (message != null) { @@ -121,7 +127,7 @@ /** - * Log to LogKit logger. + * Log message to LogKit logger with INFO priority. */ public void info(Object message) { if (message != null) { @@ -131,7 +137,7 @@ /** - * Log to LogKit logger. + * Log error to LogKit logger with INFO priority. */ public void info(Object message, Throwable t) { if (message != null) { @@ -141,7 +147,7 @@ /** - * Log to LogKit logger. + * Log message to LogKit logger with WARN priority. */ public void warn(Object message) { if (message != null) { @@ -151,7 +157,7 @@ /** - * Log to LogKit logger. + * Log error to LogKit logger with WARN priority. */ public void warn(Object message, Throwable t) { if (message != null) { @@ -161,7 +167,7 @@ /** - * Log to LogKit logger. + * Log message to LogKit logger with ERROR priority. */ public void error(Object message) { if (message != null) { @@ -171,7 +177,7 @@ /** - * Log to LogKit logger. + * Log error to LogKit logger with ERROR priority. */ public void error(Object message, Throwable t) { if (message != null) { @@ -181,7 +187,7 @@ /** - * Log to LogKit logger. + * Log message to LogKit logger with FATAL_ERROR priority. */ public void fatal(Object message) { if (message != null) { @@ -191,7 +197,7 @@ /** - * Log to LogKit logger. + * Log error to LogKit logger with FATAL_ERROR priority. */ public void fatal(Object message, Throwable t) { if (message != null) { @@ -201,7 +207,7 @@ /** - * Check that debug is enabled for LogKit logger. + * Check whether the LogKit logger will log messages of priority DEBUG. */ public boolean isDebugEnabled() { return logger.isDebugEnabled(); @@ -209,7 +215,7 @@ /** - * Check that error is enabled for LogKit logger. + * Check whether the LogKit logger will log messages of priority ERROR. */ public boolean isErrorEnabled() { return logger.isErrorEnabled(); @@ -217,15 +223,15 @@ /** - * Check that fatal is enabled for LogKit logger. - */ + * Check whether the LogKit logger will log messages of priority FATAL_ERROR. + */ public boolean isFatalEnabled() { return logger.isFatalErrorEnabled(); } /** - * Check that info is enabled for LogKit logger. + * Check whether the LogKit logger will log messages of priority INFO. */ public boolean isInfoEnabled() { return logger.isInfoEnabled(); @@ -233,8 +239,8 @@ /** - * Check that warn is enabled for LogKit logger. - */ + * Check whether the LogKit logger will log messages of priority WARN. + */ public boolean isWarnEnabled() { return logger.isWarnEnabled(); } -- To unsubscribe, e-mail: For additional commands, e-mail: