1
0

Javadoc improvements. Contributed by Boris Unckel. Issue #38174.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370651 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Burrell Donkin
2006-01-19 22:12:10 +00:00
parent ef58065fb1
commit 64a4980cc3

View File

@@ -135,9 +135,12 @@ public class Log4J12Logger implements Log, Serializable {
/** /**
* Log a message to the Log4j Logger with <code>TRACE</code> priority. * Logs a message with <code>org.apache.log4j.Priority.TRACE</code>.
* When using a log4j version that does not support the <code>TRACE</code> * When using a log4j version that does not support the <code>TRACE</code>
* level, the message will be logged at the <code>DEBUG</code> level. * level, the message will be logged at the <code>DEBUG</code> level.
*
* @param message to log
* @see org.apache.commons.logging.Log#trace(Object)
*/ */
public void trace(Object message) { public void trace(Object message) {
getLogger().log(FQCN, traceLevel, message, null ); getLogger().log(FQCN, traceLevel, message, null );
@@ -145,9 +148,13 @@ public class Log4J12Logger implements Log, Serializable {
/** /**
* Log an error to the Log4j Logger with <code>TRACE</code> priority. * Logs a message with <code>org.apache.log4j.Priority.TRACE</code>.
* When using a log4j version that does not support the <code>TRACE</code> * When using a log4j version that does not support the <code>TRACE</code>
* level, the message will be logged at the <code>DEBUG</code> level. * level, the message will be logged at the <code>DEBUG</code> level.
*
* @param message to log
* @param t log this cause
* @see org.apache.commons.logging.Log#trace(Object, Throwable)
*/ */
public void trace(Object message, Throwable t) { public void trace(Object message, Throwable t) {
getLogger().log(FQCN, traceLevel, message, t ); getLogger().log(FQCN, traceLevel, message, t );
@@ -155,14 +162,21 @@ public class Log4J12Logger implements Log, Serializable {
/** /**
* Log a message to the Log4j Logger with <code>DEBUG</code> priority. * Logs a message with <code>org.apache.log4j.Priority.DEBUG</code>.
*
* @param message to log
* @see org.apache.commons.logging.Log#debug(Object)
*/ */
public void debug(Object message) { public void debug(Object message) {
getLogger().log(FQCN, Priority.DEBUG, message, null ); getLogger().log(FQCN, Priority.DEBUG, message, null );
} }
/** /**
* Log an error to the Log4j Logger with <code>DEBUG</code> priority. * Logs a message with <code>org.apache.log4j.Priority.DEBUG</code>.
*
* @param message to log
* @param t log this cause
* @see org.apache.commons.logging.Log#debug(Object, Throwable)
*/ */
public void debug(Object message, Throwable t) { public void debug(Object message, Throwable t) {
getLogger().log(FQCN, Priority.DEBUG, message, t ); getLogger().log(FQCN, Priority.DEBUG, message, t );
@@ -170,7 +184,10 @@ public class Log4J12Logger implements Log, Serializable {
/** /**
* Log a message to the Log4j Logger with <code>INFO</code> priority. * Logs a message with <code>org.apache.log4j.Priority.INFO</code>.
*
* @param message to log
* @see org.apache.commons.logging.Log#info(Object)
*/ */
public void info(Object message) { public void info(Object message) {
getLogger().log(FQCN, Priority.INFO, message, null ); getLogger().log(FQCN, Priority.INFO, message, null );
@@ -178,7 +195,11 @@ public class Log4J12Logger implements Log, Serializable {
/** /**
* Log an error to the Log4j Logger with <code>INFO</code> priority. * Logs a message with <code>org.apache.log4j.Priority.INFO</code>.
*
* @param message to log
* @param t log this cause
* @see org.apache.commons.logging.Log#info(Object, Throwable)
*/ */
public void info(Object message, Throwable t) { public void info(Object message, Throwable t) {
getLogger().log(FQCN, Priority.INFO, message, t ); getLogger().log(FQCN, Priority.INFO, message, t );
@@ -186,7 +207,10 @@ public class Log4J12Logger implements Log, Serializable {
/** /**
* Log a message to the Log4j Logger with <code>WARN</code> priority. * Logs a message with <code>org.apache.log4j.Priority.WARN</code>.
*
* @param message to log
* @see org.apache.commons.logging.Log#warn(Object)
*/ */
public void warn(Object message) { public void warn(Object message) {
getLogger().log(FQCN, Priority.WARN, message, null ); getLogger().log(FQCN, Priority.WARN, message, null );
@@ -194,7 +218,11 @@ public class Log4J12Logger implements Log, Serializable {
/** /**
* Log an error to the Log4j Logger with <code>WARN</code> priority. * Logs a message with <code>org.apache.log4j.Priority.WARN</code>.
*
* @param message to log
* @param t log this cause
* @see org.apache.commons.logging.Log#warn(Object, Throwable)
*/ */
public void warn(Object message, Throwable t) { public void warn(Object message, Throwable t) {
getLogger().log(FQCN, Priority.WARN, message, t ); getLogger().log(FQCN, Priority.WARN, message, t );
@@ -202,7 +230,10 @@ public class Log4J12Logger implements Log, Serializable {
/** /**
* Log a message to the Log4j Logger with <code>ERROR</code> priority. * Logs a message with <code>org.apache.log4j.Priority.ERROR</code>.
*
* @param message to log
* @see org.apache.commons.logging.Log#error(Object)
*/ */
public void error(Object message) { public void error(Object message) {
getLogger().log(FQCN, Priority.ERROR, message, null ); getLogger().log(FQCN, Priority.ERROR, message, null );
@@ -210,7 +241,11 @@ public class Log4J12Logger implements Log, Serializable {
/** /**
* Log an error to the Log4j Logger with <code>ERROR</code> priority. * Logs a message with <code>org.apache.log4j.Priority.ERROR</code>.
*
* @param message to log
* @param t log this cause
* @see org.apache.commons.logging.Log#error(Object, Throwable)
*/ */
public void error(Object message, Throwable t) { public void error(Object message, Throwable t) {
getLogger().log(FQCN, Priority.ERROR, message, t ); getLogger().log(FQCN, Priority.ERROR, message, t );
@@ -218,7 +253,10 @@ public class Log4J12Logger implements Log, Serializable {
/** /**
* Log a message to the Log4j Logger with <code>FATAL</code> priority. * Logs a message with <code>org.apache.log4j.Priority.FATAL</code>.
*
* @param message to log
* @see org.apache.commons.logging.Log#fatal(Object)
*/ */
public void fatal(Object message) { public void fatal(Object message) {
getLogger().log(FQCN, Priority.FATAL, message, null ); getLogger().log(FQCN, Priority.FATAL, message, null );
@@ -226,7 +264,11 @@ public class Log4J12Logger implements Log, Serializable {
/** /**
* Log an error to the Log4j Logger with <code>FATAL</code> priority. * Logs a message with <code>org.apache.log4j.Priority.FATAL</code>.
*
* @param message to log
* @param t log this cause
* @see org.apache.commons.logging.Log#fatal(Object, Throwable)
*/ */
public void fatal(Object message, Throwable t) { public void fatal(Object message, Throwable t) {
getLogger().log(FQCN, Priority.FATAL, message, t ); getLogger().log(FQCN, Priority.FATAL, message, t );