Skip to content

Commit d6d14e4

Browse files
committed
disable system properties and env variables for log4j
1 parent ddef5e9 commit d6d14e4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

internal-logging/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ tasks {
2020
// required for META-INF/services files relocation
2121
mergeServiceFiles()
2222

23+
// Excluding property source SPI prevents log4j system properties and env variables that might
24+
// be set at the application level to change the behavior of this internal log4j instance.
25+
exclude("**/*.log4j.util.PropertySource")
26+
2327
transform(Log4j2PluginsCacheFileTransformer::class.java)
2428

2529
// relocate slf4j and log4j for internal logging to prevent any conflict

0 commit comments

Comments
 (0)