Skip to content

Commit

Permalink
Add Log4j2 to SLF4J Adapter
Browse files Browse the repository at this point in the history
Transitive dependencies use log4j2,
so in order to avoid errors like - Log4j2 could not find a logging implementation
  • Loading branch information
slawekjaranowski committed Nov 13, 2024
1 parent 1d0cc00 commit 75c0db6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,15 @@
<artifactId>slf4j-api</artifactId>
</dependency>

<dependency>
<!-- redirect log4j to slf4j -->
<!-- avoid errors as Log4j2 could not find a logging implementation -->
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
<version>2.24.1</version>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down

0 comments on commit 75c0db6

Please sign in to comment.