- slf4j-api is the java interfaces of slf4j framework.it has no implemented classes,so it's no indenpendent.
<dependency>
<groupId>org.slf4j</groupId><artifactId>slf4j-api</artifactId>
<version>1.6.1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
- slf4j-nop is the real implementation of slf4j framework.But it doesn't log anything.
<dependency>
<groupId>org.slf4j</groupId><artifactId>slf4j-nop</artifactId>
<version>1.6.1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
- slf4j-simple is the real implementation of slf4j framework.But it only sends info messages to System.out,sends warnings and errors to System.err,and ignores all other logging levels (like debug and trace).
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
- slf4j-log4j12 is the real implementation of slf4j framework.And it also need the log4j framework,so you have to configure the logging system.
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>