Skip to content

Instantly share code, notes, and snippets.

@jaxzin
Created April 19, 2011 19:02
Show Gist options
  • Save jaxzin/929283 to your computer and use it in GitHub Desktop.
Save jaxzin/929283 to your computer and use it in GitHub Desktop.
SLF4J dependencies for routing all log messages through one logging implementation.
<!-- Use JDK logging for runtime since that's what Glassfish uses. -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.5.6</version>
<scope>runtime</scope>
</dependency>
<!-- Anything using log4j should defer to slf4j. -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<version>1.5.6</version>
<scope>runtime</scope>
</dependency>
<!-- Anything using commons-logging should defer to slf4j. -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.5.6</version>
<scope>runtime</scope>
</dependency>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment