Permalink
Browse files

Switching to from commons-logging to slf4j keeps the logging deps eve…

…n simpler.
  • Loading branch information...
1 parent 2590fe6 commit 878116f1f13340e9a83d27b1eb3a60878e298a5d @chirino chirino committed Nov 1, 2010
Showing with 3 additions and 34 deletions.
  1. +0 −32 pom.xml
  2. +3 −2 src/main/scala/com/shorrockin/cascal/utils/Logging.scala
View
@@ -178,34 +178,9 @@
</dependency>
<dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.1</version>
- <exclusions>
- <exclusion>
- <groupId>avalon-framework</groupId>
- <artifactId>avalon-framework</artifactId>
- </exclusion>
- <exclusion>
- <groupId>logkit</groupId>
- <artifactId>logkit</artifactId>
- </exclusion>
- <exclusion>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- </exclusion>
- <exclusion>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
-
- <dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.5.8</version>
- <scope>test</scope>
</dependency>
<dependency>
@@ -216,13 +191,6 @@
</dependency>
<dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>jcl-over-slf4j</artifactId>
- <version>1.5.8</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
@@ -1,12 +1,13 @@
package com.shorrockin.cascal.utils
-import org.apache.commons.logging.LogFactory
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* simple logging trait to access the commons logging trait.
*
* @author Chris Shorrock
*/
trait Logging {
- lazy val log = LogFactory.getLog(this.getClass.getName)
+ lazy val log = LoggerFactory.getLogger(this.getClass.getName)
}

0 comments on commit 878116f

Please sign in to comment.