You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2016/03/31 09:57:59 UTC

[15/50] logging-log4j2 git commit: LOG4J2-1278 added logIfEnabled methods with unrolled varargs to ExtendedLogger

LOG4J2-1278 added logIfEnabled methods with unrolled varargs to ExtendedLogger


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/1c6030de
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/1c6030de
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/1c6030de

Branch: refs/heads/master
Commit: 1c6030de2133974e5e648588563ec0a7ad8e8ea0
Parents: 2dfd2c3
Author: rpopma <rp...@apache.org>
Authored: Fri Mar 18 00:16:23 2016 +1100
Committer: rpopma <rp...@apache.org>
Committed: Fri Mar 18 00:16:23 2016 +1100

----------------------------------------------------------------------
 .../logging/log4j/spi/ExtendedLogger.java       | 180 ++++++++++++++++++-
 1 file changed, 176 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/1c6030de/log4j-api/src/main/java/org/apache/logging/log4j/spi/ExtendedLogger.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/spi/ExtendedLogger.java b/log4j-api/src/main/java/org/apache/logging/log4j/spi/ExtendedLogger.java
index 08b2e7e..fc3a76c 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/spi/ExtendedLogger.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/spi/ExtendedLogger.java
@@ -304,16 +304,188 @@ public interface ExtendedLogger extends Logger {
     void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object... params);
 
     /**
-     * Always logs a message at the specified level. It is the responsibility of the caller to ensure the specified
-     * level is enabled.
+     * Logs a message if the specified level is active.
      *
      * @param fqcn The fully qualified class name of the logger entry point, used to determine the caller class and
      *            method when location information needs to be logged.
      * @param level The logging Level to check.
      * @param marker A Marker or null.
-     * @param message The Message.
-     * @param t the exception to log, including its stack trace.
+     * @param message The message format.
+     * @param p0 the message parameters
+     */
+    void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0);
+
+    /**
+     * Logs a message if the specified level is active.
+     *
+     * @param fqcn The fully qualified class name of the logger entry point, used to determine the caller class and
+     *            method when location information needs to be logged.
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message format.
+     * @param p0 the message parameters
+     * @param p1 the message parameters
+     */
+    void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1);
+
+    /**
+     * Logs a message if the specified level is active.
+     *
+     * @param fqcn The fully qualified class name of the logger entry point, used to determine the caller class and
+     *            method when location information needs to be logged.
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message format.
+     * @param p0 the message parameters
+     * @param p1 the message parameters
+     * @param p2 the message parameters
+     */
+    void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2);
+
+    /**
+     * Logs a message if the specified level is active.
+     *
+     * @param fqcn The fully qualified class name of the logger entry point, used to determine the caller class and
+     *            method when location information needs to be logged.
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message format.
+     * @param p0 the message parameters
+     * @param p1 the message parameters
+     * @param p2 the message parameters
+     * @param p3 the message parameters
+     */
+    void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2,
+            Object p3);
+
+    /**
+     * Logs a message if the specified level is active.
+     *
+     * @param fqcn The fully qualified class name of the logger entry point, used to determine the caller class and
+     *            method when location information needs to be logged.
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message format.
+     * @param p0 the message parameters
+     * @param p1 the message parameters
+     * @param p2 the message parameters
+     * @param p3 the message parameters
+     * @param p4 the message parameters
+     */
+    void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2,
+            Object p3, Object p4);
+
+    /**
+     * Logs a message if the specified level is active.
+     *
+     * @param fqcn The fully qualified class name of the logger entry point, used to determine the caller class and
+     *            method when location information needs to be logged.
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message format.
+     * @param p0 the message parameters
+     * @param p1 the message parameters
+     * @param p2 the message parameters
+     * @param p3 the message parameters
+     * @param p4 the message parameters
+     * @param p5 the message parameters
      */
+    void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2,
+            Object p3, Object p4, Object p5);
+
+    /**
+     * Logs a message if the specified level is active.
+     *
+     * @param fqcn The fully qualified class name of the logger entry point, used to determine the caller class and
+     *            method when location information needs to be logged.
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message format.
+     * @param p0 the message parameters
+     * @param p1 the message parameters
+     * @param p2 the message parameters
+     * @param p3 the message parameters
+     * @param p4 the message parameters
+     * @param p5 the message parameters
+     * @param p6 the message parameters
+     */
+    void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2,
+            Object p3, Object p4, Object p5, Object p6);
+
+    /**
+     * Logs a message if the specified level is active.
+     *
+     * @param fqcn The fully qualified class name of the logger entry point, used to determine the caller class and
+     *            method when location information needs to be logged.
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message format.
+     * @param p0 the message parameters
+     * @param p1 the message parameters
+     * @param p2 the message parameters
+     * @param p3 the message parameters
+     * @param p4 the message parameters
+     * @param p5 the message parameters
+     * @param p6 the message parameters
+     * @param p7 the message parameters
+     */
+    void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2,
+            Object p3, Object p4, Object p5, Object p6, Object p7);
+
+    /**
+     * Logs a message if the specified level is active.
+     *
+     * @param fqcn The fully qualified class name of the logger entry point, used to determine the caller class and
+     *            method when location information needs to be logged.
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message format.
+     * @param p0 the message parameters
+     * @param p1 the message parameters
+     * @param p2 the message parameters
+     * @param p3 the message parameters
+     * @param p4 the message parameters
+     * @param p5 the message parameters
+     * @param p6 the message parameters
+     * @param p7 the message parameters
+     * @param p8 the message parameters
+     */
+    void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2,
+            Object p3, Object p4, Object p5, Object p6, Object p7, Object p8);
+
+    /**
+     * Logs a message if the specified level is active.
+     *
+     * @param fqcn The fully qualified class name of the logger entry point, used to determine the caller class and
+     *            method when location information needs to be logged.
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message format.
+     * @param p0 the message parameters
+     * @param p1 the message parameters
+     * @param p2 the message parameters
+     * @param p3 the message parameters
+     * @param p4 the message parameters
+     * @param p5 the message parameters
+     * @param p6 the message parameters
+     * @param p7 the message parameters
+     * @param p8 the message parameters
+     * @param p9 the message parameters
+     */
+    void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2,
+            Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9);
+
+        /**
+         * Always logs a message at the specified level. It is the responsibility of the caller to ensure the specified
+         * level is enabled.
+         *
+         * @param fqcn The fully qualified class name of the logger entry point, used to determine the caller class and
+         *            method when location information needs to be logged.
+         * @param level The logging Level to check.
+         * @param marker A Marker or null.
+         * @param message The Message.
+         * @param t the exception to log, including its stack trace.
+         */
     void logMessage(String fqcn, Level level, Marker marker, Message message, Throwable t);
 
     /**