Skip to content

Module logging_slf4j_jul

Module logging_slf4j_jul

Contains the logger adapter for the SLF4J JUL logging library.

Install the Dependency

1
implementation("com.hexagonkt:logging_slf4j_jul:$hexagonVersion")
1
2
3
4
5
6
7
8
9
<!--
 ! Pick ONLY ONE of the options below
 !-->
<!-- Full featured implementation -->
<dependency>
  <groupId>com.hexagonkt</groupId>
  <artifactId>logging_slf4j_jul</artifactId>
  <version>$hexagonVersion</version>
</dependency>

Info

The above adapter bridge other logging libraries that may be used by other third party libraries you use (if you want to disable this behaviour, you need to explicitly exclude bridging libraries).

1
2
3
// Bridges
runtimeOnly("org.slf4j:jcl-over-slf4j:1.7.30")
runtimeOnly("org.slf4j:log4j-over-slf4j:1.7.30")
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<dependency>
  <groupId>org.slf4j</groupId>
  <artifactId>jcl-over-slf4j</artifactId>
  <version>1.7.30</version>
</dependency>
<dependency>
  <groupId>org.slf4j</groupId>
  <artifactId>log4j-over-slf4j</artifactId>
  <version>1.7.30</version>
</dependency>

Package com.hexagonkt.logging.slf4j.jul

Provides a logging management capabilities abstracting the application from logging libraries.