Skip to content

Commit 4ffff08

Browse files
committed
Add log4j as Slf4j Impl.
Since SLF4J is only a logging facade and does not provide a concrete logging implementation, we need to include `log4j-slf4j-impl` as a dependency. This allows SLF4J to route logging calls to Log4j-2, which acts as the backend logging framework.
1 parent f958e1f commit 4ffff08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/app/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ dependencies {
6262

6363
compileOnly 'org.projectlombok:lombok:1.18.24'
6464
annotationProcessor 'org.projectlombok:lombok:1.18.24'
65+
implementation "org.slf4j:slf4j-api:1.7.36"
66+
runtimeOnly 'org.apache.logging.log4j:log4j-slf4j-impl:2.24.2'
6567

6668
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
6769
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"

0 commit comments

Comments
 (0)