Return-Path: X-Original-To: apmail-logging-commits-archive@minotaur.apache.org Delivered-To: apmail-logging-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15336D80D for ; Wed, 12 Dec 2012 15:50:13 +0000 (UTC) Received: (qmail 7117 invoked by uid 500); 12 Dec 2012 15:50:12 -0000 Delivered-To: apmail-logging-commits-archive@logging.apache.org Received: (qmail 7095 invoked by uid 500); 12 Dec 2012 15:50:12 -0000 Mailing-List: contact commits-help@logging.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@logging.apache.org Delivered-To: mailing list commits@logging.apache.org Received: (qmail 7084 invoked by uid 99); 12 Dec 2012 15:50:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2012 15:50:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2012 15:50:09 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B4B442388ADA; Wed, 12 Dec 2012 15:49:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1420787 - /logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java Date: Wed, 12 Dec 2012 15:49:47 -0000 To: commits@logging.apache.org From: ggregory@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121212154947.B4B442388ADA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ggregory Date: Wed Dec 12 15:49:46 2012 New Revision: 1420787 URL: http://svn.apache.org/viewvc?rev=1420787&view=rev Log: Javadoc. Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java?rev=1420787&r1=1420786&r2=1420787&view=diff ============================================================================== --- logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java (original) +++ logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java Wed Dec 12 15:49:46 2012 @@ -86,8 +86,9 @@ public interface Logger { * Logs a message with parameters at the {@link Level#DEBUG DEBUG} level. * * @param marker the marker data specific to this log statement - * @param message the message to log. + * @param message the message to log; the format depends on the message factory. * @param params parameters to the message. + * @see #getMessageFactory() */ void debug(Marker marker, String message, Object... params); @@ -141,8 +142,9 @@ public interface Logger { /** * Logs a message with parameters at the {@link Level#DEBUG DEBUG} level. - * @param message the message to log. + * @param message the message to log; the format depends on the message factory. * @param params parameters to the message. + * @see #getMessageFactory() */ void debug(String message, Object... params); @@ -217,8 +219,9 @@ public interface Logger { /** * Logs a message with parameters at the {@link Level#ERROR ERROR} level. * @param marker the marker data specific to this log statement. - * @param message the message to log. + * @param message the message to log; the format depends on the message factory. * @param params parameters to the message. + * @see #getMessageFactory() * * @doubt Likely to misinterpret existing log4j client code that intended to call * info(Object,Throwable). Incurs array creation expense on every call. (RG) I assume you @@ -278,8 +281,9 @@ public interface Logger { /** * Logs a message with parameters at the {@link Level#ERROR ERROR} level. * - * @param message the message to log. + * @param message the message to log; the format depends on the message factory. * @param params parameters to the message. + * @see #getMessageFactory() * * @doubt Likely to misinterpret existing log4j client code that intended to call * info(Object,Throwable). Incurs array creation expense on every call. (RG) I assume you @@ -358,8 +362,9 @@ public interface Logger { * Logs a message with parameters at the {@link Level#FATAL FATAL} level. * * @param marker The marker data specific to this log statement. - * @param message the message to log. + * @param message the message to log; the format depends on the message factory. * @param params parameters to the message. + * @see #getMessageFactory() * * @doubt Likely to misinterpret existing log4j client code that intended to call * info(Object,Throwable). Incurs array creation expense on every call.(RG) I assume you @@ -419,8 +424,9 @@ public interface Logger { /** * Logs a message with parameters at the {@link Level#FATAL FATAL} level. * - * @param message the message to log. + * @param message the message to log; the format depends on the message factory. * @param params parameters to the message. + * @see #getMessageFactory() * * @doubt Likely to misinterpret existing log4j client code that intended to call * info(Object,Throwable). Incurs array creation expense on every call.(RG) I assume you @@ -491,8 +497,9 @@ public interface Logger { * Logs a message with parameters at the {@link Level#INFO INFO} level. * * @param marker the marker data specific to this log statement - * @param message the message to log. + * @param message the message to log; the format depends on the message factory. * @param params parameters to the message. + * @see #getMessageFactory() * * @doubt Likely to misinterpret existing log4j client code that intended to call * info(Object,Throwable). Incurs array creation expense on every call. (RG) It isn't @@ -552,8 +559,9 @@ public interface Logger { /** * Logs a message with parameters at the {@link Level#INFO INFO} level. * - * @param message the message to log. + * @param message the message to log; the format depends on the message factory. * @param params parameters to the message. + * @see #getMessageFactory() * * @doubt Likely to misinterpret existing log4j client code that intended to call * info(Object,Throwable). Incurs array creation expense on every call. (RG) It isn't @@ -754,8 +762,9 @@ public interface Logger { * Logs a message with parameters at the {@link Level#TRACE TRACE} level. * * @param marker the marker data specific to this log statement - * @param message the message to log. + * @param message the message to log; the format depends on the message factory. * @param params parameters to the message. + * @see #getMessageFactory() */ void trace(Marker marker, String message, Object... params); @@ -817,8 +826,9 @@ public interface Logger { /** * Logs a message with parameters at the {@link Level#TRACE TRACE} level. - * @param message the message to log. + * @param message the message to log; the format depends on the message factory. * @param params parameters to the message. + * @see #getMessageFactory() */ void trace(String message, Object... params); @@ -883,8 +893,9 @@ public interface Logger { * Logs a message with parameters at the {@link Level#WARN WARN} level. * * @param marker the marker data specific to this log statement. - * @param message the message to log. + * @param message the message to log; the format depends on the message factory. * @param params parameters to the message. + * @see #getMessageFactory() * * @doubt Likely to misinterpret existing log4j client code that intended to call * info(Object,Throwable). Incurs array creation expense on every call. (RG) I assume you @@ -943,8 +954,10 @@ public interface Logger { /** * Logs a message with parameters at the {@link Level#WARN WARN} level. - * @param message the message to log. + * @param message the message to log; the format depends on the message factory. * @param params parameters to the message. + * @see #getMessageFactory() + * * @doubt Likely to misinterpret existing log4j client code that intended to call * info(Object,Throwable). Incurs array creation expense on every call. (RG) I assume you * meant warn, not info. It isn't possible to be misinterpreted as the previous method @@ -962,7 +975,7 @@ public interface Logger { void warn(String message, Throwable t); /** - * Gets the message factory. + * Gets the message factory used to convert message Objects and Strings into actual log Messages. * * @return the message factory. */