Author: rareddy
Date: 2011-11-13 13:31:49 -0500 (Sun, 13 Nov 2011)
New Revision: 3642
Modified:
trunk/client/src/main/java/org/teiid/jdbc/EnhancedTimer.java
Log:
TEIID-1825: changed Logger class to JDK based.
Modified: trunk/client/src/main/java/org/teiid/jdbc/EnhancedTimer.java
===================================================================
--- trunk/client/src/main/java/org/teiid/jdbc/EnhancedTimer.java 2011-11-13 13:09:21 UTC
(rev 3641)
+++ trunk/client/src/main/java/org/teiid/jdbc/EnhancedTimer.java 2011-11-13 18:31:49 UTC
(rev 3642)
@@ -27,8 +27,9 @@
import java.util.concurrent.Executor;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.locks.ReentrantReadWriteLock;
+import java.util.logging.Level;
+import java.util.logging.Logger;
-import org.jboss.logging.Logger;
import org.teiid.core.util.ExecutorUtils;
/**
@@ -38,7 +39,7 @@
*/
public class EnhancedTimer {
- private static final Logger LOGGER = Logger.getLogger(EnhancedTimer.class);
+ private static final Logger LOGGER = Logger.getLogger("org.teiid.jdbc");
//$NON-NLS-1$
private static AtomicLong id = new AtomicLong();
public class Task implements Comparable<Task>, Runnable {
@@ -139,7 +140,7 @@
try {
taskExecutor.execute(task);
} catch (Throwable t) {
- LOGGER.error("Unexpected exception running task", t); //$NON-NLS-1$
+ LOGGER.log(Level.SEVERE, "Unexpected exception running task", t);
//$NON-NLS-1$
}
return true;
}
Show replies by date