Created
December 10, 2013 11:20
-
-
Save jmorenoamor/7889130 to your computer and use it in GitHub Desktop.
Add SLF4J support in Maven project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Properties --> | |
<slf4jVersion>1.6.1</slf4jVersion> | |
<!-- Dependencies --> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-api</artifactId> | |
<version>${slf4jVersion}</version> | |
</dependency> | |
<!-- Binding for NOP, silently discarding all logging. --> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-nop</artifactId> | |
<version>${slf4jVersion}</version> | |
</dependency> | |
<!-- Binding for System.out --> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-simple</artifactId> | |
<version>${slf4jVersion}</version> | |
</dependency> | |
<!--Binding for log4j version 1.2.x You also need to place log4j.jar on your class path. --> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-log4j12</artifactId> | |
<version>${slf4jVersion}</version> | |
</dependency> | |
<dependency> | |
<groupId>log4j</groupId> | |
<artifactId>log4j</artifactId> | |
<version>1.2.16</version> | |
<scope>runtime</scope> | |
</dependency> | |
<!--Binding for commons logging over slf4j --> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>jcl-over-slf4j</artifactId> | |
<version>${slf4jVersion}</version> | |
<scope>runtime</scope> | |
</dependency> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment