[jboss-svn-commits] JBoss Common SVN: r3383 - in common-logging-log4j/trunk: src/main/java/org/jboss/logging and 2 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Jul 22 15:21:20 EDT 2009


Author: david.lloyd at jboss.com
Date: 2009-07-22 15:21:19 -0400 (Wed, 22 Jul 2009)
New Revision: 3383

Added:
   common-logging-log4j/trunk/src/main/java/org/jboss/logging/log4j/Log4jLoggerPlugin.java
   common-logging-log4j/trunk/src/main/java/org/jboss/logging/log4j/Log4jLoggerPluginInstance.java
Removed:
   common-logging-log4j/trunk/src/main/java/org/jboss/logging/Log4jLoggerPlugin.java
   common-logging-log4j/trunk/src/main/java/org/jboss/logging/log4j/Log4jLoggerPlugin.java
Modified:
   common-logging-log4j/trunk/pom.xml
   common-logging-log4j/trunk/src/main/java/org/jboss/logging/util/LoggerPluginWriter.java
Log:
Add proper localization API; add capability to cache logger instances by breaking up the LoggerPlugin interface

Modified: common-logging-log4j/trunk/pom.xml
===================================================================
--- common-logging-log4j/trunk/pom.xml	2009-07-22 19:21:07 UTC (rev 3382)
+++ common-logging-log4j/trunk/pom.xml	2009-07-22 19:21:19 UTC (rev 3383)
@@ -7,7 +7,7 @@
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.jboss.logging</groupId>   
   <artifactId>jboss-logging-log4j</artifactId>
-  <version>2.1.1-SNAPSHOT</version>
+  <version>2.2.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.1.0.GA</version>
+      <version>2.2.0-SNAPSHOT</version>
     </dependency>
     
     <dependency>
@@ -46,7 +46,17 @@
     <dependency>
       <groupId>log4j</groupId>
       <artifactId>log4j</artifactId>
-      <version>1.2.14</version>
+      <version>1.2.15</version>
+      <exclusions>
+          <exclusion>
+              <groupId>com.sun.jdmk</groupId>
+              <artifactId>jmxtools</artifactId>
+          </exclusion>
+          <exclusion>
+              <groupId>com.sun.jmx</groupId>
+              <artifactId>jmxri</artifactId>
+          </exclusion>
+      </exclusions>
     </dependency>
     
   </dependencies>

Deleted: common-logging-log4j/trunk/src/main/java/org/jboss/logging/Log4jLoggerPlugin.java
===================================================================
--- common-logging-log4j/trunk/src/main/java/org/jboss/logging/Log4jLoggerPlugin.java	2009-07-22 19:21:07 UTC (rev 3382)
+++ common-logging-log4j/trunk/src/main/java/org/jboss/logging/Log4jLoggerPlugin.java	2009-07-22 19:21:19 UTC (rev 3383)
@@ -1,33 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.logging;
-
-/**
- * Noop compatibility class that links to 
- * org.jboss.logging.log4j.Log4jLoggerPlugin
- * @author Scott.Stark at jboss.org
- * @version $Revision:$
- */
-public class Log4jLoggerPlugin
-   extends org.jboss.logging.log4j.Log4jLoggerPlugin
-{
-}

Deleted: 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-07-22 19:21:07 UTC (rev 3382)
+++ common-logging-log4j/trunk/src/main/java/org/jboss/logging/log4j/Log4jLoggerPlugin.java	2009-07-22 19:21:19 UTC (rev 3383)
@@ -1,347 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.logging.log4j;
-
-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.
- *
- * @see org.jboss.logging.Logger
- * @see org.jboss.logging.LoggerPlugin
- *
- * @author  <a href="mailto:sacha.labourey at cogito-info.ch">Sacha Labourey</a>.
- * @author Jason T. Greene
- * @version $Revision$
- */
-public class Log4jLoggerPlugin implements LoggerPlugin, NDCSupport, MDCSupport
-{
-
-   // Constants -----------------------------------------------------
-
-   /**
-    *  Fully qualified classname for this class so Log4J locationinfo will be
-    *  correct
-    */
-   private static final String FQCN = Log4jLoggerPlugin.class.getName();
-
-   // Attributes ----------------------------------------------------
-
-   /** The Log4j delegate logger. */
-   private transient org.apache.log4j.Logger log;
-
-   // Static --------------------------------------------------------
-
-   // Constructors --------------------------------------------------
-
-   public Log4jLoggerPlugin () { }
-
-   public void init (String name)
-   {
-      log = LogManager.getLogger(name);
-   }
-
-   // Public --------------------------------------------------------
-
-   public Category getCategory()
-   {
-      return log;
-   }
-
-   /**
-    * Exposes the delegate Log4j Logger.
-    * 
-    * @return the underlying logger
-    */
-   public org.apache.log4j.Logger getLogger()
-   {
-      return log;
-   }
-
-   // LoggerPlugin implementation ----------------------------------------------
-
-   public boolean isTraceEnabled()
-   {
-      Level l = Level.TRACE;
-      if (log.isEnabledFor(l) == false)
-         return false;
-      return l.isGreaterOrEqual(log.getEffectiveLevel());
-   }
-
-   /**
-    * Issue a log msg with a level of TRACE.
-    * Invokes log.log(Level.TRACE, message);
-    */
-   public void trace(Object message)
-   {
-      log.log(FQCN, Level.TRACE, message, null);
-   }
-
-   /**
-    * Issue a log msg and throwable with a level of TRACE.
-    * Invokes log.log(Level.TRACE, message, t);
-    */
-   public void trace(Object message, Throwable t)
-   {
-      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.
-    *
-    * @return true if a {@link #trace(Object)} method invocation would pass
-    * the msg to the configured appenders, false otherwise.
-    */
-   @Deprecated
-   public boolean isDebugEnabled()
-   {
-      Level l = Level.DEBUG;
-      if (log.isEnabledFor(l) == false)
-         return false;
-      return l.isGreaterOrEqual(log.getEffectiveLevel());
-   }
-
-   /**
-    * Issue a log msg with a level of DEBUG.
-    * Invokes log.log(Level.DEBUG, message);
-    */
-   public void debug(Object message)
-   {
-      log.log(FQCN, Level.DEBUG, message, null);
-   }
-
-   /**
-    * Issue a log msg and throwable with a level of DEBUG.
-    * Invokes log.log(Level.DEBUG, message, t);
-    */
-   public void debug(Object message, Throwable t)
-   {
-      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.
-    *
-    * @return true if a {@link #info(Object)} method invocation would pass
-    * the msg to the configured appenders, false otherwise.
-    */
-   @Deprecated
-   public boolean isInfoEnabled()
-   {
-      Level l = Level.INFO;
-      if (log.isEnabledFor(l) == false)
-         return false;
-      return l.isGreaterOrEqual(log.getEffectiveLevel());
-   }
-
-   /**
-    * Issue a log msg with a level of INFO.
-    * Invokes log.log(Level.INFO, message);
-    */
-   public void info(Object message)
-   {
-      log.log(FQCN, Level.INFO, message, null);
-   }
-
-   /**
-    * Issue a log msg and throwable with a level of INFO.
-    * Invokes log.log(Level.INFO, message, t);
-    */
-   public void info(Object message, Throwable t)
-   {
-      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);
-    */
-   public void warn(Object message)
-   {
-      log.log(FQCN, Level.WARN, message, null);
-   }
-
-   /**
-    * Issue a log msg and throwable with a level of WARN.
-    * Invokes log.log(Level.WARN, message, t);
-    */
-   public void warn(Object message, Throwable t)
-   {
-      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);
-    */
-   public void error(Object message)
-   {
-      log.log(FQCN, Level.ERROR, message, null);
-   }
-
-   /**
-    * Issue a log msg and throwable with a level of ERROR.
-    * Invokes log.log(Level.ERROR, message, t);
-    */
-   public void error(Object message, Throwable t)
-   {
-      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);
-    */
-   public void fatal(Object message)
-   {
-      log.log(FQCN, Level.FATAL, message, null);
-   }
-
-   /**
-    * Issue a log msg and throwable with a level of FATAL.
-    * Invokes log.log(Level.FATAL, message, t);
-    */
-   public void fatal(Object message, Throwable t)
-   {
-      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);
-    *
-    * @param p the priority
-    * @param message the message
-    * @deprecated  Use Level versions.
-    */
-   public void log(Priority p, Object message)
-   {
-      log.log(FQCN, p, message, null);
-   }
-
-   /**
-    * Issue a log msg with the given priority.
-    * Invokes log.log(p, message, t);
-    *
-    *
-    * @param p the priority
-    * @param message the message
-    * @param t the throwable
-    * @deprecated  Use Level versions.
-    */
-   public void log(Priority p, Object message, Throwable t)
-   {
-      log.log(FQCN, p, message, t);
-   }
-
-   /**
-    * Issue a log msg with the given level.
-    * Invokes log.log(l, message);
-    * 
-    * @param l the level
-    * @param message the message
-    */
-   public void log(Level l, Object message)
-   {
-      log.log(FQCN, l, message, null);
-   }
-
-   /**
-    * Issue a log msg with the given level.
-    * Invokes log.log(l, message, t);
-    * 
-    * @param l the level
-    * @param message the message
-    * @param t the throwable
-    */
-   public void log(Level l, Object message, Throwable t)
-   {
-      log.log(FQCN, l, message, t);
-   }
-
-   public NDCProvider getNDCProvider()
-   {
-      return new Log4jNDCProvider();
-   }
-
-   public MDCProvider getMDCProvider()
-   {
-      return new Log4jMDCProvider();
-   }
-
-   // Y overrides ---------------------------------------------------
-
-   // Package protected ---------------------------------------------
-
-   // Protected -----------------------------------------------------
-
-   // Private -------------------------------------------------------
-
-   // Inner classes -------------------------------------------------
-
-}

Added: 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	                        (rev 0)
+++ common-logging-log4j/trunk/src/main/java/org/jboss/logging/log4j/Log4jLoggerPlugin.java	2009-07-22 19:21:19 UTC (rev 3383)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.log4j;
+
+import org.jboss.logging.LoggerPlugin;
+import org.jboss.logging.LoggerPluginInstance;
+import org.jboss.logging.MDCProvider;
+import org.jboss.logging.NDCProvider;
+
+/**
+ *
+ */
+public class Log4jLoggerPlugin implements LoggerPlugin {
+   private final MDCProvider mdcProvider;
+   private final NDCProvider ndcProvider;
+
+   public Log4jLoggerPlugin() {
+      mdcProvider = new Log4jMDCProvider();
+      ndcProvider = new Log4jNDCProvider();
+   }
+
+   public LoggerPluginInstance getInstance(String name) {
+      Log4jLoggerPluginInstance instance = new Log4jLoggerPluginInstance();
+      instance.init(name);
+      return instance;
+   }
+
+   public MDCProvider getMDCProvider() {
+      return mdcProvider;
+   }
+
+   public NDCProvider getNDCProvider() {
+      return ndcProvider;
+   }
+}

Copied: common-logging-log4j/trunk/src/main/java/org/jboss/logging/log4j/Log4jLoggerPluginInstance.java (from rev 3161, common-logging-log4j/trunk/src/main/java/org/jboss/logging/log4j/Log4jLoggerPlugin.java)
===================================================================
--- common-logging-log4j/trunk/src/main/java/org/jboss/logging/log4j/Log4jLoggerPluginInstance.java	                        (rev 0)
+++ common-logging-log4j/trunk/src/main/java/org/jboss/logging/log4j/Log4jLoggerPluginInstance.java	2009-07-22 19:21:19 UTC (rev 3383)
@@ -0,0 +1,147 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.logging.log4j;
+
+import org.jboss.logging.AbstractLoggerPluginInstance;
+import org.jboss.logging.LoggerPluginInstance;
+
+import org.apache.log4j.Category;
+import org.apache.log4j.Level;
+import org.apache.log4j.LogManager;
+
+import java.text.MessageFormat;
+
+/**
+ * Delegate for org.jboss.logging.Logger logging to log4j. Body of implementation
+ * mainly copied from old Logger implementation.
+ *
+ * @see org.jboss.logging.Logger
+ * @see org.jboss.logging.LoggerPlugin
+ *
+ * @author  <a href="mailto:sacha.labourey at cogito-info.ch">Sacha Labourey</a>.
+ * @author Jason T. Greene
+ * @version $Revision$
+ */
+public class Log4jLoggerPluginInstance extends AbstractLoggerPluginInstance implements LoggerPluginInstance
+{
+
+   // Constants -----------------------------------------------------
+
+   /**
+    *  Fully qualified classname for this class so Log4J locationinfo will be
+    *  correct
+    */
+   private static final String FQCN = Log4jLoggerPluginInstance.class.getName();
+
+   // Attributes ----------------------------------------------------
+
+   /** The Log4j delegate logger. */
+   private transient org.apache.log4j.Logger log;
+
+   // Static --------------------------------------------------------
+
+   // Constructors --------------------------------------------------
+
+   public Log4jLoggerPluginInstance() { }
+
+   public void init (String name)
+   {
+      log = LogManager.getLogger(name);
+   }
+
+   // Public --------------------------------------------------------
+
+   public Category getCategory()
+   {
+      return log;
+   }
+
+   /**
+    * Exposes the delegate Log4j Logger.
+    * 
+    * @return the underlying logger
+    */
+   public org.apache.log4j.Logger getLogger()
+   {
+      return log;
+   }
+
+   // LoggerPlugin implementation ----------------------------------------------
+
+   public boolean isTraceEnabled()
+   {
+      Level l = Level.TRACE;
+      return log.isEnabledFor(l) && l.isGreaterOrEqual(log.getEffectiveLevel());
+   }
+
+   public void trace(String loggerFcqn, Object message, Object[] params, Throwable t) {
+      if (isTraceEnabled()) {
+         final String str = String.valueOf(message);
+         log.log(FQCN, Level.TRACE, params == null ? str : MessageFormat.format(str, params), t);
+      }
+   }
+
+   @Deprecated
+   public boolean isDebugEnabled()
+   {
+      Level l = Level.DEBUG;
+      return log.isEnabledFor(l) && l.isGreaterOrEqual(log.getEffectiveLevel());
+   }
+
+   @SuppressWarnings({"deprecation"})
+   public void debug(String loggerFcqn, Object message, Object[] params, Throwable t) {
+      if (isDebugEnabled()) {
+         final String str = String.valueOf(message);
+         log.log(FQCN, Level.DEBUG, params == null ? str : MessageFormat.format(str, params), t);
+      }
+   }
+
+   @Deprecated
+   public boolean isInfoEnabled()
+   {
+      Level l = Level.INFO;
+      return log.isEnabledFor(l) && l.isGreaterOrEqual(log.getEffectiveLevel());
+   }
+
+   @SuppressWarnings({"deprecation"})
+   public void info(String loggerFcqn, Object message, Object[] params, Throwable t) {
+      if (isInfoEnabled()) {
+         final String str = String.valueOf(message);
+         log.log(FQCN, Level.INFO, params == null ? str : MessageFormat.format(str, params), t);
+      }
+   }
+
+   public void warn(String loggerFcqn, Object message, Object[] params, Throwable t) {
+      final String str = String.valueOf(message);
+      log.log(FQCN, Level.WARN, params == null ? str : MessageFormat.format(str, params), t);
+   }
+
+   public void error(String loggerFcqn, Object message, Object[] params, Throwable t) {
+      final String str = String.valueOf(message);
+      log.log(FQCN, Level.ERROR, params == null ? str : MessageFormat.format(str, params), t);
+   }
+
+   public void fatal(String loggerFcqn, Object message, Object[] params, Throwable t) {
+      final String str = String.valueOf(message);
+      log.log(FQCN, Level.FATAL, params == null ? str : MessageFormat.format(str, params), t);
+   }
+}


Property changes on: common-logging-log4j/trunk/src/main/java/org/jboss/logging/log4j/Log4jLoggerPluginInstance.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Modified: common-logging-log4j/trunk/src/main/java/org/jboss/logging/util/LoggerPluginWriter.java
===================================================================
--- common-logging-log4j/trunk/src/main/java/org/jboss/logging/util/LoggerPluginWriter.java	2009-07-22 19:21:07 UTC (rev 3382)
+++ common-logging-log4j/trunk/src/main/java/org/jboss/logging/util/LoggerPluginWriter.java	2009-07-22 19:21:19 UTC (rev 3383)
@@ -25,34 +25,39 @@
 import java.io.PrintWriter;
 import java.io.Writer;
 
-import org.jboss.logging.LoggerPlugin;
+import org.jboss.logging.LoggerPluginInstance;
 
 /** A subclass of PrintWriter that redirects its output to a LoggerPlugin at
  * INFO level. The only usecase for this is legacy java apis which require
  * integration with the logging layer through a Writer.
  *
+ * @deprecated This class uses the logger plugin directly rather than relying on the stable API.
  * @author David Jencks
  * @author Scott.Stark at jboss.org
  * @version $Revision$
  */
+ at Deprecated
 public class LoggerPluginWriter
    extends PrintWriter
 {
+   @SuppressWarnings({"deprecation"})
+   private static final String FQCN = LoggerPluginWriter.class.getName();
+
    /**
     *
     * @param  logger the logging plugin used to write messages
     */
-   public LoggerPluginWriter(final LoggerPlugin logger)
+   public LoggerPluginWriter(final LoggerPluginInstance logger)
    {
       super(new PluginWriter(logger), true);
    }
 
    static class PluginWriter extends Writer
    {
-      private LoggerPlugin logger;
+      private LoggerPluginInstance logger;
       private boolean closed;
 
-      public PluginWriter(final LoggerPlugin logger)
+      public PluginWriter(final LoggerPluginInstance logger)
       {
          lock = logger;
          this.logger = logger;
@@ -72,7 +77,7 @@
          }
          if (len > 0)
          {
-            logger.info(String.copyValueOf(cbuf, off, len));
+            logger.info(FQCN, String.copyValueOf(cbuf, off, len), null, null);
          }
       }
 



More information about the jboss-svn-commits mailing list