activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r791466 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/IdGenerator.java
Date Mon, 06 Jul 2009 12:43:29 GMT
Author: dejanb
Date: Mon Jul  6 12:43:29 2009
New Revision: 791466

URL: http://svn.apache.org/viewvc?rev=791466&view=rev
Log:
swithcing to commons logging

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/IdGenerator.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/IdGenerator.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/IdGenerator.java?rev=791466&r1=791465&r2=791466&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/IdGenerator.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/IdGenerator.java Mon
Jul  6 12:43:29 2009
@@ -18,8 +18,9 @@
 
 import java.net.InetAddress;
 import java.net.ServerSocket;
-import java.util.logging.Level;
-import java.util.logging.Logger;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 
 /**
  * Generator for Globally unique Strings.
@@ -27,7 +28,7 @@
 
 public class IdGenerator {
 
-    private static final Logger LOG = Logger.getLogger(IdGenerator.class.getName());
+    private static final Log LOG = LogFactory.getLog(IdGenerator.class);
     private static final String UNIQUE_STUB;
     private static int instanceCount;
     private static String hostName;
@@ -54,7 +55,7 @@
                 Thread.sleep(100);
                 ss.close();
             } catch (Exception ioe) {
-                LOG.log(Level.WARNING, "could not generate unique stub", ioe);
+                LOG.warn("could not generate unique stub", ioe);
             }
         } else {
             hostName = "localhost";



Mime
View raw message