From 7441d6bd86fe92d9da8d42dd3bb23b361827a96b Mon Sep 17 00:00:00 2001 From: Sebastian Thomschke Date: Sun, 8 Oct 2017 22:39:16 +0200 Subject: [PATCH] Honor logging.path config in filePattern for Log4j2 RollingFile Previously, rolled over files were always written to logs/. This commit ensures that rotated logs are written into the directory specified in the application config's logging.path property. Closes gh-10554 --- .../org/springframework/boot/logging/log4j2/log4j2-file.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot/src/main/resources/org/springframework/boot/logging/log4j2/log4j2-file.xml b/spring-boot/src/main/resources/org/springframework/boot/logging/log4j2/log4j2-file.xml index 0c7195a395..4bb414d720 100644 --- a/spring-boot/src/main/resources/org/springframework/boot/logging/log4j2/log4j2-file.xml +++ b/spring-boot/src/main/resources/org/springframework/boot/logging/log4j2/log4j2-file.xml @@ -11,7 +11,7 @@ - + ${sys:FILE_LOG_PATTERN}