mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
728e27d193
Since version 2.15.0 `log4j-jul` contains a `Log4jBridgeHandler`, that forwards JUL to Log4j 2.x and synchronizes the logger levels of the two frameworks. This commmit adds support for the `Log4jBridgeHandler` and sets it as the bridge handler for the Log4j 2.x stack, replacing the existing JUL to SLF4J bridge that was used previously. See gh-30003
12 lines
307 B
Groovy
12 lines
307 B
Groovy
plugins {
|
|
id "org.springframework.boot.starter"
|
|
}
|
|
|
|
description = "Starter for using Log4j2 for logging. An alternative to spring-boot-starter-logging"
|
|
|
|
dependencies {
|
|
api("org.apache.logging.log4j:log4j-slf4j-impl")
|
|
api("org.apache.logging.log4j:log4j-core")
|
|
api("org.apache.logging.log4j:log4j-jul")
|
|
}
|