swithcing to commons logging

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@791466 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2009-07-06 12:43:29 +00:00
parent 7ac1bb8baa
commit 5807370a24
1 changed files with 5 additions and 4 deletions

View File

@ -18,8 +18,9 @@ package org.apache.activemq.util;
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 @@ import java.util.logging.Logger;
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 @@ public class IdGenerator {
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";