[jboss-svn-commits] JBoss Common SVN: r3422 - common-logging-spi/trunk/src/main/java/org/jboss/logging.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Jul 31 20:03:28 EDT 2009
Author: david.lloyd at jboss.com
Date: 2009-07-31 20:03:28 -0400 (Fri, 31 Jul 2009)
New Revision: 3422
Modified:
common-logging-spi/trunk/src/main/java/org/jboss/logging/Logger.java
Log:
Formatting log with preset parameter counts
Modified: common-logging-spi/trunk/src/main/java/org/jboss/logging/Logger.java
===================================================================
--- common-logging-spi/trunk/src/main/java/org/jboss/logging/Logger.java 2009-07-30 02:31:27 UTC (rev 3421)
+++ common-logging-spi/trunk/src/main/java/org/jboss/logging/Logger.java 2009-08-01 00:03:28 UTC (rev 3422)
@@ -59,9 +59,7 @@
*/
public class Logger implements Serializable
{
- private static volatile LoggerPlugin plugin;
-
- /**
+ /**
* Levels used by this logging API.
*/
public enum Level {
@@ -254,6 +252,51 @@
/**
* Issue a formatted log message with a level of TRACE.
*
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the sole parameter
+ */
+ public void tracef(String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.TRACE)) {
+ loggerDelegate.logf(Level.TRACE, FQCN, format, new Object[] { param1 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of TRACE.
+ *
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void tracef(String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.TRACE)) {
+ loggerDelegate.logf(Level.TRACE, FQCN, format, new Object[] { param1, param2 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of TRACE.
+ *
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void tracef(String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.TRACE)) {
+ loggerDelegate.logf(Level.TRACE, FQCN, format, new Object[] { param1, param2, param3 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of TRACE.
+ *
* @param t the throwable
* @param format the format string, as per {@link String#format(String, Object[])}
* @param params the parameters
@@ -264,6 +307,54 @@
}
/**
+ * Issue a formatted log message with a level of TRACE.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the sole parameter
+ */
+ public void tracef(Throwable t, String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.TRACE)) {
+ loggerDelegate.logf(Level.TRACE, FQCN, format, new Object[] { param1 }, t);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of TRACE.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void tracef(Throwable t, String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.TRACE)) {
+ loggerDelegate.logf(Level.TRACE, FQCN, format, new Object[] { param1, param2 }, t);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of TRACE.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void tracef(Throwable t, String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.TRACE)) {
+ loggerDelegate.logf(Level.TRACE, FQCN, format, new Object[] { param1, param2, param3 }, t);
+ }
+ }
+
+ /**
* Check to see if the DEBUG level is enabled for this logger.
*
* @return true if a {@link #debug(Object)} method invocation would pass
@@ -357,6 +448,51 @@
/**
* Issue a formatted log message with a level of DEBUG.
*
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the sole parameter
+ */
+ public void debugf(String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.DEBUG)) {
+ loggerDelegate.logf(Level.DEBUG, FQCN, format, new Object[] { param1 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of DEBUG.
+ *
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void debugf(String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.DEBUG)) {
+ loggerDelegate.logf(Level.DEBUG, FQCN, format, new Object[] { param1, param2 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of DEBUG.
+ *
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void debugf(String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.DEBUG)) {
+ loggerDelegate.logf(Level.DEBUG, FQCN, format, new Object[] { param1, param2, param3 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of DEBUG.
+ *
* @param t the throwable
* @param format the format string, as per {@link String#format(String, Object[])}
* @param params the parameters
@@ -367,6 +503,54 @@
}
/**
+ * Issue a formatted log message with a level of DEBUG.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the sole parameter
+ */
+ public void debugf(Throwable t, String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.DEBUG)) {
+ loggerDelegate.logf(Level.DEBUG, FQCN, format, new Object[] { param1 }, t);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of DEBUG.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void debugf(Throwable t, String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.DEBUG)) {
+ loggerDelegate.logf(Level.DEBUG, FQCN, format, new Object[] { param1, param2 }, t);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of DEBUG.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void debugf(Throwable t, String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.DEBUG)) {
+ loggerDelegate.logf(Level.DEBUG, FQCN, format, new Object[] { param1, param2, param3 }, t);
+ }
+ }
+
+ /**
* Check to see if the INFO level is enabled for this logger.
*
* @return true if a {@link #info(Object)} method invocation would pass
@@ -460,6 +644,51 @@
/**
* Issue a formatted log message with a level of INFO.
*
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the sole parameter
+ */
+ public void infof(String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.INFO)) {
+ loggerDelegate.logf(Level.INFO, FQCN, format, new Object[] { param1 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of INFO.
+ *
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void infof(String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.INFO)) {
+ loggerDelegate.logf(Level.INFO, FQCN, format, new Object[] { param1, param2 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of INFO.
+ *
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void infof(String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.INFO)) {
+ loggerDelegate.logf(Level.INFO, FQCN, format, new Object[] { param1, param2, param3 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of INFO.
+ *
* @param t the throwable
* @param format the format string, as per {@link String#format(String, Object[])}
* @param params the parameters
@@ -470,6 +699,54 @@
}
/**
+ * Issue a formatted log message with a level of INFO.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the sole parameter
+ */
+ public void infof(Throwable t, String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.INFO)) {
+ loggerDelegate.logf(Level.INFO, FQCN, format, new Object[] { param1 }, t);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of INFO.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void infof(Throwable t, String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.INFO)) {
+ loggerDelegate.logf(Level.INFO, FQCN, format, new Object[] { param1, param2 }, t);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of INFO.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void infof(Throwable t, String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.INFO)) {
+ loggerDelegate.logf(Level.INFO, FQCN, format, new Object[] { param1, param2, param3 }, t);
+ }
+ }
+
+ /**
* Issue a log message with a level of WARN.
*
* @param message the message
@@ -552,6 +829,51 @@
/**
* Issue a formatted log message with a level of WARN.
*
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the sole parameter
+ */
+ public void warnf(String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.WARN)) {
+ loggerDelegate.logf(Level.WARN, FQCN, format, new Object[] { param1 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of WARN.
+ *
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void warnf(String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.WARN)) {
+ loggerDelegate.logf(Level.WARN, FQCN, format, new Object[] { param1, param2 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of WARN.
+ *
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void warnf(String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.WARN)) {
+ loggerDelegate.logf(Level.WARN, FQCN, format, new Object[] { param1, param2, param3 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of WARN.
+ *
* @param t the throwable
* @param format the format string, as per {@link String#format(String, Object[])}
* @param params the parameters
@@ -562,6 +884,54 @@
}
/**
+ * Issue a formatted log message with a level of WARN.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the sole parameter
+ */
+ public void warnf(Throwable t, String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.WARN)) {
+ loggerDelegate.logf(Level.WARN, FQCN, format, new Object[] { param1 }, t);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of WARN.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void warnf(Throwable t, String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.WARN)) {
+ loggerDelegate.logf(Level.WARN, FQCN, format, new Object[] { param1, param2 }, t);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of WARN.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void warnf(Throwable t, String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.WARN)) {
+ loggerDelegate.logf(Level.WARN, FQCN, format, new Object[] { param1, param2, param3 }, t);
+ }
+ }
+
+ /**
* Issue a log message with a level of ERROR.
*
* @param message the message
@@ -644,6 +1014,51 @@
/**
* Issue a formatted log message with a level of ERROR.
*
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the sole parameter
+ */
+ public void errorf(String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.ERROR)) {
+ loggerDelegate.logf(Level.ERROR, FQCN, format, new Object[] { param1 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of ERROR.
+ *
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void errorf(String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.ERROR)) {
+ loggerDelegate.logf(Level.ERROR, FQCN, format, new Object[] { param1, param2 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of ERROR.
+ *
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void errorf(String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.ERROR)) {
+ loggerDelegate.logf(Level.ERROR, FQCN, format, new Object[] { param1, param2, param3 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of ERROR.
+ *
* @param t the throwable
* @param format the format string, as per {@link String#format(String, Object[])}
* @param params the parameters
@@ -654,6 +1069,54 @@
}
/**
+ * Issue a formatted log message with a level of ERROR.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the sole parameter
+ */
+ public void errorf(Throwable t, String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.ERROR)) {
+ loggerDelegate.logf(Level.ERROR, FQCN, format, new Object[] { param1 }, t);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of ERROR.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void errorf(Throwable t, String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.ERROR)) {
+ loggerDelegate.logf(Level.ERROR, FQCN, format, new Object[] { param1, param2 }, t);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of ERROR.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void errorf(Throwable t, String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.ERROR)) {
+ loggerDelegate.logf(Level.ERROR, FQCN, format, new Object[] { param1, param2, param3 }, t);
+ }
+ }
+
+ /**
* Issue a log message with a level of FATAL.
*
* @param message the message
@@ -736,6 +1199,51 @@
/**
* Issue a formatted log message with a level of FATAL.
*
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the sole parameter
+ */
+ public void fatalf(String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.FATAL)) {
+ loggerDelegate.logf(Level.FATAL, FQCN, format, new Object[] { param1 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of FATAL.
+ *
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void fatalf(String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.FATAL)) {
+ loggerDelegate.logf(Level.FATAL, FQCN, format, new Object[] { param1, param2 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of FATAL.
+ *
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void fatalf(String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.FATAL)) {
+ loggerDelegate.logf(Level.FATAL, FQCN, format, new Object[] { param1, param2, param3 }, null);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of FATAL.
+ *
* @param t the throwable
* @param format the format string, as per {@link String#format(String, Object[])}
* @param params the parameters
@@ -746,6 +1254,54 @@
}
/**
+ * Issue a formatted log message with a level of FATAL.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the sole parameter
+ */
+ public void fatalf(Throwable t, String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.FATAL)) {
+ loggerDelegate.logf(Level.FATAL, FQCN, format, new Object[] { param1 }, t);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of FATAL.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void fatalf(Throwable t, String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.FATAL)) {
+ loggerDelegate.logf(Level.FATAL, FQCN, format, new Object[] { param1, param2 }, t);
+ }
+ }
+
+ /**
+ * Issue a formatted log message with a level of FATAL.
+ *
+ * @param t the throwable
+ * @param format the format string, as per {@link String#format(String, Object[])}
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void fatalf(Throwable t, String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(Level.FATAL)) {
+ loggerDelegate.logf(Level.FATAL, FQCN, format, new Object[] { param1, param2, param3 }, t);
+ }
+ }
+
+ /**
* Log a message at the given level.
*
* @param level the level
@@ -800,6 +1356,54 @@
*
* @param level the level
* @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the sole parameter
+ */
+ public void logf(Level level, String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(level)) {
+ loggerDelegate.logf(level, FQCN, format, new Object[] { param1 }, null);
+ }
+ }
+
+ /**
+ * Log a message at the given level.
+ *
+ * @param level the level
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void logf(Level level, String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(level)) {
+ loggerDelegate.logf(level, FQCN, format, new Object[] { param1, param2 }, null);
+ }
+ }
+
+ /**
+ * Log a message at the given level.
+ *
+ * @param level the level
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void logf(Level level, String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(level)) {
+ loggerDelegate.logf(level, FQCN, format, new Object[] { param1, param2, param3 }, null);
+ }
+ }
+
+ /**
+ * Log a message at the given level.
+ *
+ * @param level the level
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
* @param params the message parameters
*/
public void logf(Level level, String format, Object... params)
@@ -813,6 +1417,57 @@
* @param level the level
* @param t the throwable cause
* @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the sole parameter
+ */
+ public void logf(Level level, Throwable t, String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(level)) {
+ loggerDelegate.logf(level, FQCN, format, new Object[] { param1 }, t);
+ }
+ }
+
+ /**
+ * Log a message at the given level.
+ *
+ * @param level the level
+ * @param t the throwable cause
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void logf(Level level, Throwable t, String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(level)) {
+ loggerDelegate.logf(level, FQCN, format, new Object[] { param1, param2 }, t);
+ }
+ }
+
+ /**
+ * Log a message at the given level.
+ *
+ * @param level the level
+ * @param t the throwable cause
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void logf(Level level, Throwable t, String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(level)) {
+ loggerDelegate.logf(level, FQCN, format, new Object[] { param1, param2, param3 }, t);
+ }
+ }
+
+ /**
+ * Log a message at the given level.
+ *
+ * @param level the level
+ * @param t the throwable cause
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
* @param params the message parameters
*/
public void logf(Level level, Throwable t, String format, Object... params)
@@ -827,6 +1482,60 @@
* @param level the level
* @param t the throwable cause
* @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the sole parameter
+ */
+ public void logf(String loggerFqcn, Level level, Throwable t, String format, Object param1)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(level)) {
+ loggerDelegate.logf(level, loggerFqcn, format, new Object[] { param1 }, t);
+ }
+ }
+
+ /**
+ * Log a message at the given level.
+ *
+ * @param loggerFqcn the logger class name
+ * @param level the level
+ * @param t the throwable cause
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ */
+ public void logf(String loggerFqcn, Level level, Throwable t, String format, Object param1, Object param2)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(level)) {
+ loggerDelegate.logf(level, loggerFqcn, format, new Object[] { param1, param2 }, t);
+ }
+ }
+
+ /**
+ * Log a message at the given level.
+ *
+ * @param loggerFqcn the logger class name
+ * @param level the level
+ * @param t the throwable cause
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
+ * @param param1 the first parameter
+ * @param param2 the second parameter
+ * @param param3 the third parameter
+ */
+ public void logf(String loggerFqcn, Level level, Throwable t, String format, Object param1, Object param2, Object param3)
+ {
+ final LoggerPluginInstance loggerDelegate = this.loggerDelegate;
+ if (loggerDelegate.isEnabled(level)) {
+ loggerDelegate.logf(level, loggerFqcn, format, new Object[] { param1, param2, param3 }, t);
+ }
+ }
+
+ /**
+ * Log a message at the given level.
+ *
+ * @param loggerFqcn the logger class name
+ * @param level the level
+ * @param t the throwable cause
+ * @param format the format string as per {@link String#format(String, Object[])} or resource bundle key therefor
* @param params the message parameters
*/
public void logf(String loggerFqcn, Level level, Throwable t, String format, Object... params)
More information about the jboss-svn-commits
mailing list