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:48 UTC

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

LOG4J2-1278 added 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/48189cc1
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/48189cc1
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/48189cc1

Branch: refs/heads/master
Commit: 48189cc1d7644dee3b466b615b1c9b67d04a83f1
Parents: ec948a0
Author: rpopma <rp...@apache.org>
Authored: Thu Mar 17 01:09:32 2016 +1100
Committer: rpopma <rp...@apache.org>
Committed: Thu Mar 17 01:09:32 2016 +1100

----------------------------------------------------------------------
 .../logging/log4j/spi/ExtendedLogger.java       | 189 +++++++++++++++++--
 1 file changed, 175 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/48189cc1/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 2bb2ea8..08b2e7e 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
@@ -31,7 +31,7 @@ public interface ExtendedLogger extends Logger {
 
     /**
      * Determines if logging is enabled.
-     * 
+     *
      * @param level The logging Level to check.
      * @param marker A Marker or null.
      * @param message The Message.
@@ -42,7 +42,7 @@ public interface ExtendedLogger extends Logger {
 
     /**
      * Determines if logging is enabled.
-     * 
+     *
      * @param level The logging Level to check.
      * @param marker A Marker or null.
      * @param message The message.
@@ -53,7 +53,7 @@ public interface ExtendedLogger extends Logger {
 
     /**
      * Determines if logging is enabled.
-     * 
+     *
      * @param level The logging Level to check.
      * @param marker A Marker or null.
      * @param message The message.
@@ -64,7 +64,7 @@ public interface ExtendedLogger extends Logger {
 
     /**
      * Determine if logging is enabled.
-     * 
+     *
      * @param level The logging Level to check.
      * @param marker A Marker or null.
      * @param message The message.
@@ -74,7 +74,7 @@ public interface ExtendedLogger extends Logger {
 
     /**
      * Determines if logging is enabled.
-     * 
+     *
      * @param level The logging Level to check.
      * @param marker A Marker or null.
      * @param message The message.
@@ -84,8 +84,169 @@ public interface ExtendedLogger extends Logger {
     boolean isEnabled(Level level, Marker marker, String message, Object... params);
 
     /**
+     * Determines if logging is enabled.
+     *
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message.
+     * @param p0 the message parameters
+     * @return True if logging is enabled, false otherwise.
+     */
+    boolean isEnabled(Level level, Marker marker, String message, Object p0);
+
+    /**
+     * Determines if logging is enabled.
+     *
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message.
+     * @param p0 the message parameters
+     * @param p1 the message parameters
+     * @return True if logging is enabled, false otherwise.
+     */
+    boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1);
+
+    /**
+     * Determines if logging is enabled.
+     *
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message.
+     * @param p0 the message parameters
+     * @param p1 the message parameters
+     * @param p2 the message parameters
+     * @return True if logging is enabled, false otherwise.
+     */
+    boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2);
+
+    /**
+     * Determines if logging is enabled.
+     *
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message.
+     * @param p0 the message parameters
+     * @param p1 the message parameters
+     * @param p2 the message parameters
+     * @param p3 the message parameters
+     * @return True if logging is enabled, false otherwise.
+     */
+    boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3);
+
+    /**
+     * Determines if logging is enabled.
+     *
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message.
+     * @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
+     * @return True if logging is enabled, false otherwise.
+     */
+    boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3,
+            Object p4);
+
+    /**
+     * Determines if logging is enabled.
+     *
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message.
+     * @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
+     * @return True if logging is enabled, false otherwise.
+     */
+    boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3,
+            Object p4, Object p5);
+
+    /**
+     * Determines if logging is enabled.
+     *
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message.
+     * @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
+     * @return True if logging is enabled, false otherwise.
+     */
+    boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3,
+            Object p4, Object p5, Object p6);
+
+    /**
+     * Determines if logging is enabled.
+     *
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message.
+     * @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
+     * @return True if logging is enabled, false otherwise.
+     */
+    boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3,
+            Object p4, Object p5, Object p6, Object p7);
+
+    /**
+     * Determines if logging is enabled.
+     *
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message.
+     * @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
+     * @return True if logging is enabled, false otherwise.
+     */
+    boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3,
+            Object p4, Object p5, Object p6, Object p7, Object p8);
+
+    /**
+     * Determines if logging is enabled.
+     *
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param message The message.
+     * @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
+     * @return True if logging is enabled, false otherwise.
+     */
+    boolean isEnabled(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);
+
+    /**
      * 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.
@@ -97,7 +258,7 @@ public interface ExtendedLogger extends Logger {
 
     /**
      * 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.
@@ -109,7 +270,7 @@ public interface ExtendedLogger extends Logger {
 
     /**
      * 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.
@@ -121,7 +282,7 @@ public interface ExtendedLogger extends Logger {
 
     /**
      * 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.
@@ -132,7 +293,7 @@ public interface ExtendedLogger extends Logger {
 
     /**
      * 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.
@@ -145,7 +306,7 @@ public interface ExtendedLogger extends Logger {
     /**
      * 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.
@@ -157,7 +318,7 @@ public interface ExtendedLogger extends Logger {
 
     /**
      * Logs a message which is only to be constructed 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.
@@ -171,7 +332,7 @@ public interface ExtendedLogger extends Logger {
 
     /**
      * Logs a message whose parameters are only to be constructed 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.
@@ -183,7 +344,7 @@ public interface ExtendedLogger extends Logger {
 
     /**
      * Logs a message which is only to be constructed 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.