Monday 5 July 2021

SLF4J and compatible logging libraries

 

Logging framework

Description

dependency

log4j

To integrate with log4j

<dependency>

    <groupId>org.slf4j</groupId>

    <artifactId>slf4j-log4j12</artifactId>

    <version>{version}</version>

</dependency>

Jakarta commons logging framework

To integrate with commons logging library

<dependency>

    <groupId>org.slf4j</groupId>

    <artifactId>slf4j-jcl</artifactId>

    <version>version</version>

</dependency>

SLF4j simple binding

Simple implementation of Logger that sends all enabled log messages, for all defined loggers, to the console (System.err).

<dependency>

    <groupId>org.slf4j</groupId>

    <artifactId>slf4j-simple</artifactId>

    <version>version</version>

</dependency>

logback

Integration with logback

<dependency>

         <groupId>ch.qos.logback</groupId>

         <artifactId>logback-classic</artifactId>

         <version>1.2.3</version>

</dependency>

Previous                                                    Next                                                    Home

No comments:

Post a Comment