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

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon May 11 19:17:34 EDT 2009


Author: david.lloyd at jboss.com
Date: 2009-05-11 19:17:34 -0400 (Mon, 11 May 2009)
New Revision: 3150

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

Modified: common-logging-log4j/trunk/pom.xml
===================================================================
--- common-logging-log4j/trunk/pom.xml	2009-05-11 23:17:26 UTC (rev 3149)
+++ common-logging-log4j/trunk/pom.xml	2009-05-11 23:17:34 UTC (rev 3150)
@@ -7,7 +7,7 @@
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.jboss.logging</groupId>   
   <artifactId>jboss-logging-log4j</artifactId>
-  <version>2.0.7-SNAPSHOT</version>
+  <version>2.1.0-SNAPSHOT</version>
   <packaging>jar</packaging>
   <name>JBoss Logging Log4j</name>
   <url>http://www.jboss.org</url>
@@ -33,7 +33,7 @@
     <dependency>
       <groupId>org.jboss.logging</groupId>
       <artifactId>jboss-logging-spi</artifactId>
-      <version>2.0.5.GA</version>
+      <version>2.1.0-SNAPSHOT</version>
     </dependency>
     
     <dependency>

Modified: common-logging-log4j/trunk/src/main/java/org/jboss/logging/log4j/Log4jLoggerPlugin.java
===================================================================
--- common-logging-log4j/trunk/src/main/java/org/jboss/logging/log4j/Log4jLoggerPlugin.java	2009-05-11 23:17:26 UTC (rev 3149)
+++ common-logging-log4j/trunk/src/main/java/org/jboss/logging/log4j/Log4jLoggerPlugin.java	2009-05-11 23:17:34 UTC (rev 3150)
@@ -21,17 +21,17 @@
  */
 package org.jboss.logging.log4j;
 
-import org.apache.log4j.Category;
-import org.apache.log4j.Level;
-import org.apache.log4j.LogManager;
-import org.apache.log4j.Priority;
-import org.jboss.logging.Logger;
 import org.jboss.logging.LoggerPlugin;
 import org.jboss.logging.MDCProvider;
 import org.jboss.logging.MDCSupport;
 import org.jboss.logging.NDCProvider;
 import org.jboss.logging.NDCSupport;
 
+import org.apache.log4j.Category;
+import org.apache.log4j.Level;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Priority;
+
 /**
  * Delegate for org.jboss.logging.Logger logging to log4j. Body of implementation
  * mainly copied from old Logger implementation.
@@ -115,6 +115,12 @@
       log.log(FQCN, Level.TRACE, message, t);
    }
 
+   /** {@inheritDoc} */
+   public void trace(final String loggerFcqn, final Object message, final Throwable t)
+   {
+      log.log(loggerFcqn, Level.TRACE, message, t);
+   }
+
    /**
     * Check to see if the TRACE level is enabled for this logger.
     *
@@ -148,6 +154,12 @@
       log.log(FQCN, Level.DEBUG, message, t);
    }
 
+   /** {@inheritDoc} */
+   public void debug(final String loggerFcqn, final Object message, final Throwable t)
+   {
+      log.log(loggerFcqn, Level.DEBUG, message, t);
+   }
+
    /**
     * Check to see if the INFO level is enabled for this logger.
     *
@@ -181,6 +193,12 @@
       log.log(FQCN, Level.INFO, message, t);
    }
 
+   /** {@inheritDoc} */
+   public void info(final String loggerFcqn, final Object message, final Throwable t)
+   {
+      log.log(loggerFcqn, Level.INFO, message, t);
+   }
+
    /**
     * Issue a log msg with a level of WARN.
     * Invokes log.log(Level.WARN, message);
@@ -199,6 +217,12 @@
       log.log(FQCN, Level.WARN, message, t);
    }
 
+   /** {@inheritDoc} */
+   public void warn(final String loggerFcqn, final Object message, final Throwable t)
+   {
+      log.log(loggerFcqn, Level.WARN, message, t);
+   }
+
    /**
     * Issue a log msg with a level of ERROR.
     * Invokes log.log(Level.ERROR, message);
@@ -217,6 +241,12 @@
       log.log(FQCN, Level.ERROR, message, t);
    }
 
+   /** {@inheritDoc} */
+   public void error(final String loggerFcqn, final Object message, final Throwable t)
+   {
+      log.log(loggerFcqn, Level.ERROR, message, t);
+   }
+
    /**
     * Issue a log msg with a level of FATAL.
     * Invokes log.log(Level.FATAL, message);
@@ -235,6 +265,12 @@
       log.log(FQCN, Level.FATAL, message, t);
    }
 
+   /** {@inheritDoc} */
+   public void fatal(final String loggerFcqn, final Object message, final Throwable t)
+   {
+      log.log(loggerFcqn, Level.FATAL, message, t);
+   }
+
    /**
     * Issue a log msg with the given level.
     * Invokes log.log(p, message);




More information about the jboss-svn-commits mailing list