[jboss-svn-commits] JBoss Common SVN: r3147 - in common-logging-spi/trunk: src/main/java/org/jboss/logging and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon May 11 18:48:24 EDT 2009


Author: david.lloyd at jboss.com
Date: 2009-05-11 18:48:23 -0400 (Mon, 11 May 2009)
New Revision: 3147

Modified:
   common-logging-spi/trunk/pom.xml
   common-logging-spi/trunk/src/main/java/org/jboss/logging/Logger.java
   common-logging-spi/trunk/src/main/java/org/jboss/logging/LoggerPlugin.java
   common-logging-spi/trunk/src/main/java/org/jboss/logging/NullLoggerPlugin.java
Log:
JBLOGGING-14: support for facades in front of this facade

Modified: common-logging-spi/trunk/pom.xml
===================================================================
--- common-logging-spi/trunk/pom.xml	2009-05-11 18:52:42 UTC (rev 3146)
+++ common-logging-spi/trunk/pom.xml	2009-05-11 22:48:23 UTC (rev 3147)
@@ -7,7 +7,7 @@
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.jboss.logging</groupId>
   <artifactId>jboss-logging-spi</artifactId>
-  <version>2.0.6-SNAPSHOT</version>
+  <version>2.1.0-SNAPSHOT</version>
   <packaging>jar</packaging>
   <name>JBoss Logging Programming Interface</name>
   <url>http://www.jboss.org</url>

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-05-11 18:52:42 UTC (rev 3146)
+++ common-logging-spi/trunk/src/main/java/org/jboss/logging/Logger.java	2009-05-11 22:48:23 UTC (rev 3147)
@@ -172,6 +172,18 @@
    }
 
    /**
+    * Issue a log msg and throwable with a level of TRACE and a specific logger class name.
+    *
+    * @param loggerFqcn the logger class name
+    * @param message the message
+    * @param t the throwable
+    */
+   public void trace(String loggerFqcn, Object message, Throwable t)
+   {
+      loggerDelegate.trace(loggerFqcn, message, t);
+   }
+
+   /**
     * Check to see if the DEBUG level is enabled for this logger.
     *
     * @deprecated DEBUG is for low volume logging, you don't need this
@@ -205,6 +217,18 @@
    }
 
    /**
+    * Issue a log msg and throwable with a level of DEBUG and a specific logger class name.
+    *
+    * @param loggerFqcn the logger class name
+    * @param message the message
+    * @param t the throwable
+    */
+   public void debug(String loggerFqcn, Object message, Throwable t)
+   {
+      loggerDelegate.debug(loggerFqcn, message, t);
+   }
+
+   /**
     * Check to see if the INFO level is enabled for this logger.
     *
     * @deprecated INFO is for low volume information, you don't need this
@@ -238,6 +262,18 @@
    }
 
    /**
+    * Issue a log msg and throwable with a level of INFO and a specific logger class name.
+    *
+    * @param loggerFqcn the logger class name
+    * @param message the message
+    * @param t the throwable
+    */
+   public void info(String loggerFqcn, Object message, Throwable t)
+   {
+      loggerDelegate.info(loggerFqcn, message, t);
+   }
+
+   /**
     * Issue a log msg with a level of WARN.
     * 
     * @param message the message
@@ -259,6 +295,18 @@
    }
 
    /**
+    * Issue a log msg and throwable with a level of WARN and a specific logger class name.
+    *
+    * @param loggerFqcn the logger class name
+    * @param message the message
+    * @param t the throwable
+    */
+   public void warn(String loggerFqcn, Object message, Throwable t)
+   {
+      loggerDelegate.warn(loggerFqcn, message, t);
+   }
+
+   /**
     * Issue a log msg with a level of ERROR.
     * 
     * @param message the message
@@ -280,6 +328,18 @@
    }
 
    /**
+    * Issue a log msg and throwable with a level of ERROR and a specific logger class name.
+    *
+    * @param loggerFqcn the logger class name
+    * @param message the message
+    * @param t the throwable
+    */
+   public void error(String loggerFqcn, Object message, Throwable t)
+   {
+      loggerDelegate.error(loggerFqcn, message, t);
+   }
+
+   /**
     * Issue a log msg with a level of FATAL.
     * 
     * @param message the message
@@ -301,6 +361,18 @@
    }
 
    /**
+    * Issue a log msg and throwable with a level of FATAL and a specific logger class name.
+    *
+    * @param loggerFqcn the logger class name
+    * @param message the message
+    * @param t the throwable
+    */
+   public void fatal(String loggerFqcn, Object message, Throwable t)
+   {
+      loggerDelegate.fatal(loggerFqcn, message, t);
+   }
+
+   /**
     * Custom serialization to reinitalize the delegate
     * 
     * @param stream the object stream

Modified: common-logging-spi/trunk/src/main/java/org/jboss/logging/LoggerPlugin.java
===================================================================
--- common-logging-spi/trunk/src/main/java/org/jboss/logging/LoggerPlugin.java	2009-05-11 18:52:42 UTC (rev 3146)
+++ common-logging-spi/trunk/src/main/java/org/jboss/logging/LoggerPlugin.java	2009-05-11 22:48:23 UTC (rev 3147)
@@ -64,6 +64,15 @@
    void trace(Object message, Throwable t);
 
    /**
+    * Issue a log msg and throwable with a level of TRACE and a specific logger class name.
+    *
+    * @param loggerFcqn the logger class name
+    * @param message the message
+    * @param t the throwable
+    */
+   void trace(String loggerFcqn, Object message, Throwable t);
+
+   /**
     * Check to see if the DEBUG level is enabled for this logger.
     *
     * @deprecated DEBUG is for low volume logging, you don't need this
@@ -88,6 +97,15 @@
    void debug(Object message, Throwable t);
 
    /**
+    * Issue a log msg and throwable with a level of DEBUG and a specific logger class name.
+    *
+    * @param loggerFcqn the logger class name
+    * @param message the message
+    * @param t the throwable
+    */
+   void debug(String loggerFcqn, Object message, Throwable t);
+
+   /**
     * Check to see if the INFO level is enabled for this logger.
     *
     * @deprecated INFO is for low volume information, you don't need this
@@ -112,6 +130,15 @@
    void info(Object message, Throwable t);
 
    /**
+    * Issue a log msg and throwable with a level of INFO and a specific logger class name.
+    *
+    * @param loggerFcqn the logger class name
+    * @param message the message
+    * @param t the throwable
+    */
+   void info(String loggerFcqn, Object message, Throwable t);
+
+   /**
     * Issue a log msg with a level of WARN.
     * 
     * @param message the message
@@ -127,6 +154,15 @@
    void warn(Object message, Throwable t);
 
    /**
+    * Issue a log msg and throwable with a level of WARN and a specific logger class name.
+    *
+    * @param loggerFcqn the logger class name
+    * @param message the message
+    * @param t the throwable
+    */
+   void warn(String loggerFcqn, Object message, Throwable t);
+
+   /**
     * Issue a log msg with a level of ERROR.
     * 
     * @param message the message
@@ -142,6 +178,15 @@
    void error(Object message, Throwable t);
 
    /**
+    * Issue a log msg and throwable with a level of ERROR and a specific logger class name.
+    *
+    * @param loggerFcqn the logger class name
+    * @param message the message
+    * @param t the throwable
+    */
+   void error(String loggerFcqn, Object message, Throwable t);
+
+   /**
     * Issue a log msg with a level of FATAL.
     * 
     * @param message the message
@@ -155,4 +200,13 @@
     * @param t the throwable
     */
    void fatal(Object message, Throwable t);
+
+   /**
+    * Issue a log msg and throwable with a level of FATAL and a specific logger class name.
+    *
+    * @param loggerFcqn the logger class name
+    * @param message the message
+    * @param t the throwable
+    */
+   void fatal(String loggerFcqn, Object message, Throwable t);
 }

Modified: common-logging-spi/trunk/src/main/java/org/jboss/logging/NullLoggerPlugin.java
===================================================================
--- common-logging-spi/trunk/src/main/java/org/jboss/logging/NullLoggerPlugin.java	2009-05-11 18:52:42 UTC (rev 3146)
+++ common-logging-spi/trunk/src/main/java/org/jboss/logging/NullLoggerPlugin.java	2009-05-11 22:48:23 UTC (rev 3147)
@@ -53,6 +53,12 @@
       // nothing
    }
 
+   public void trace(String loggerFcqn, Object message, Throwable t)
+   {
+      // nothing
+   }
+
+   @Deprecated
    public boolean isDebugEnabled()
    {
       return false;
@@ -68,6 +74,12 @@
       // nothing
    }
 
+   public void debug(String loggerFcqn, Object message, Throwable t)
+   {
+      // nothing
+   }
+
+   @Deprecated
    public boolean isInfoEnabled()
    {
       return false;
@@ -83,6 +95,11 @@
       // nothing
    }
 
+   public void info(String loggerFcqn, Object message, Throwable t)
+   {
+      // nothing
+   }
+
    public void error(Object message)
    {
       // nothing
@@ -93,6 +110,11 @@
       // nothing
    }
 
+   public void error(String loggerFcqn, Object message, Throwable t)
+   {
+      // nothing
+   }
+
    public void fatal(Object message)
    {
       // nothing
@@ -103,6 +125,11 @@
       // nothing
    }
 
+   public void fatal(String loggerFcqn, Object message, Throwable t)
+   {
+      // nothing
+   }
+
    public void warn(Object message)
    {
       // nothing
@@ -112,4 +139,9 @@
    {
       // nothing
    }
+
+   public void warn(String loggerFcqn, Object message, Throwable t)
+   {
+      // nothing
+   }
 }




More information about the jboss-svn-commits mailing list