[weld-commits] Weld SVN: r4649 - in extensions/trunk/se: src/main/java/org/jboss/weld/environment/se and 1 other directories.
weld-commits at lists.jboss.org
weld-commits at lists.jboss.org
Wed Nov 4 08:45:29 EST 2009
Author: peteroyle
Date: 2009-11-04 08:45:29 -0500 (Wed, 04 Nov 2009)
New Revision: 4649
Modified:
extensions/trunk/se/pom.xml
extensions/trunk/se/src/main/java/org/jboss/weld/environment/se/ShutdownManager.java
extensions/trunk/se/src/main/java/org/jboss/weld/environment/se/discovery/AbstractScanner.java
extensions/trunk/se/src/main/java/org/jboss/weld/environment/se/discovery/URLScanner.java
Log:
Switched to slf4j logging provider.
Modified: extensions/trunk/se/pom.xml
===================================================================
--- extensions/trunk/se/pom.xml 2009-11-04 13:35:22 UTC (rev 4648)
+++ extensions/trunk/se/pom.xml 2009-11-04 13:45:29 UTC (rev 4649)
@@ -77,8 +77,14 @@
<groupId>javax.annotation</groupId>
<artifactId>jsr250-api</artifactId>
</dependency>
-
+ <dependency>
+ <groupId>org.jboss.slf4j</groupId>
+ <artifactId>slf4j-jboss-logging</artifactId>
+ <version>1.0.2.GA</version>
+ </dependency>
</dependencies>
</project>
+
+
Modified: extensions/trunk/se/src/main/java/org/jboss/weld/environment/se/ShutdownManager.java
===================================================================
--- extensions/trunk/se/src/main/java/org/jboss/weld/environment/se/ShutdownManager.java 2009-11-04 13:35:22 UTC (rev 4648)
+++ extensions/trunk/se/src/main/java/org/jboss/weld/environment/se/ShutdownManager.java 2009-11-04 13:45:29 UTC (rev 4649)
@@ -20,17 +20,16 @@
import javax.enterprise.event.Observes;
import javax.enterprise.inject.spi.BeanManager;
import javax.inject.Inject;
-
import org.jboss.weld.bootstrap.api.Bootstrap;
import org.jboss.weld.environment.se.events.Shutdown;
-import org.jboss.weld.log.LogProvider;
-import org.jboss.weld.log.Logging;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
@ApplicationScoped
public class ShutdownManager
{
- private static LogProvider log = Logging.getLogProvider(ShutdownManager.class);
+ private static Logger log = LoggerFactory.getLogger(ShutdownManager.class);
@Inject
private BeanManager manager;
@@ -58,7 +57,8 @@
else
{
log.debug("Skipping spurious call to shutdown");
- log.trace(Thread.currentThread().getStackTrace());
+ log.trace("Spurious call to shutdown located at: ",
+ Thread.currentThread().getStackTrace());
}
}
}
Modified: extensions/trunk/se/src/main/java/org/jboss/weld/environment/se/discovery/AbstractScanner.java
===================================================================
--- extensions/trunk/se/src/main/java/org/jboss/weld/environment/se/discovery/AbstractScanner.java 2009-11-04 13:35:22 UTC (rev 4648)
+++ extensions/trunk/se/src/main/java/org/jboss/weld/environment/se/discovery/AbstractScanner.java 2009-11-04 13:45:29 UTC (rev 4649)
@@ -17,10 +17,9 @@
package org.jboss.weld.environment.se.discovery;
import java.net.URL;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
-import org.jboss.weld.log.LogProvider;
-import org.jboss.weld.log.Logging;
-
/**
* Abstract base class for {@link Scanner} providing common functionality
*
@@ -32,7 +31,7 @@
public abstract class AbstractScanner implements Scanner
{
- private static final LogProvider log = Logging.getLogProvider(Scanner.class);
+ private static final Logger log = LoggerFactory.getLogger(Scanner.class);
private final ClassLoader classLoader;
private final SEWeldDiscovery webBeanDiscovery;
Modified: extensions/trunk/se/src/main/java/org/jboss/weld/environment/se/discovery/URLScanner.java
===================================================================
--- extensions/trunk/se/src/main/java/org/jboss/weld/environment/se/discovery/URLScanner.java 2009-11-04 13:35:22 UTC (rev 4648)
+++ extensions/trunk/se/src/main/java/org/jboss/weld/environment/se/discovery/URLScanner.java 2009-11-04 13:45:29 UTC (rev 4649)
@@ -29,8 +29,8 @@
import java.util.zip.ZipException;
import java.util.zip.ZipFile;
-import org.jboss.weld.log.LogProvider;
-import org.jboss.weld.log.Logging;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* Implementation of {@link Scanner} which can scan a {@link URLClassLoader}
@@ -43,7 +43,7 @@
*/
public class URLScanner extends AbstractScanner
{
- private static final LogProvider log = Logging.getLogProvider(URLScanner.class);
+ private static final Logger log = LoggerFactory.getLogger(URLScanner.class);
public URLScanner(ClassLoader classLoader, SEWeldDiscovery webBeanDiscovery)
{
More information about the weld-commits
mailing list