From 13517fad9b043718e34c10c653bc995dddfc726e Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Fri, 29 Nov 2024 11:25:47 +0800 Subject: [PATCH] Polish formatting of log configuration file 1. Remove space before `/>` to keep consistency. 2. Capitalize `filters` for Log4j2. 3. Uppercase log level to keep consistency. --- .../boot/logging/log4j2/log4j2-file.xml | 24 +++++++++---------- .../boot/logging/log4j2/log4j2.xml | 24 +++++++++---------- .../boot/logging/logback/base.xml | 10 ++++---- .../boot/logging/logback/defaults.xml | 12 +++++----- .../src/test/resources/logback-broken.xml | 2 +- .../resources/logback-include-defaults.xml | 2 +- .../src/test/resources/logback-janino.xml | 2 +- .../src/test/resources/logback-nondefault.xml | 2 +- .../logback-springprofile-in-root.xml | 2 +- .../src/dockerTest/resources/logback.xml | 2 +- .../src/main/resources/log4j2.xml | 6 ++--- .../src/main/resources/logback.xml | 4 ++-- .../src/main/resources/logback-spring.xml | 6 ++--- 13 files changed, 49 insertions(+), 49 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/log4j2/log4j2-file.xml b/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/log4j2/log4j2-file.xml index a1387fc0042c..c81eca81ddd0 100644 --- a/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/log4j2/log4j2-file.xml +++ b/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/log4j2/log4j2-file.xml @@ -34,22 +34,22 @@ - + - - - - - - - - - - - + + + + + + + + + + + diff --git a/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/log4j2/log4j2.xml b/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/log4j2/log4j2.xml index cb94b2ff67cd..113618d0697d 100644 --- a/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/log4j2/log4j2.xml +++ b/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/log4j2/log4j2.xml @@ -17,22 +17,22 @@ - + - + - - - - - - - - - - + + + + + + + + + + diff --git a/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/base.xml b/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/base.xml index b1b17e289d92..04458c92a97e 100644 --- a/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/base.xml +++ b/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/base.xml @@ -5,12 +5,12 @@ Base logback configuration provided for compatibility with Spring Boot 1.1 --> - + - - + + - - + + diff --git a/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/defaults.xml b/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/defaults.xml index 9f38f8564a27..f492ccc72ad6 100644 --- a/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/defaults.xml +++ b/spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/defaults.xml @@ -5,12 +5,12 @@ Default logback configuration provided for import --> - - - - - - + + + + + + diff --git a/spring-boot-project/spring-boot/src/test/resources/logback-broken.xml b/spring-boot-project/spring-boot/src/test/resources/logback-broken.xml index 6411a145d452..7f8454941cff 100644 --- a/spring-boot-project/spring-boot/src/test/resources/logback-broken.xml +++ b/spring-boot-project/spring-boot/src/test/resources/logback-broken.xml @@ -6,6 +6,6 @@ - + diff --git a/spring-boot-project/spring-boot/src/test/resources/logback-include-defaults.xml b/spring-boot-project/spring-boot/src/test/resources/logback-include-defaults.xml index 76b3943cd2fc..0124d8a7e357 100644 --- a/spring-boot-project/spring-boot/src/test/resources/logback-include-defaults.xml +++ b/spring-boot-project/spring-boot/src/test/resources/logback-include-defaults.xml @@ -7,6 +7,6 @@ - + diff --git a/spring-boot-project/spring-boot/src/test/resources/logback-janino.xml b/spring-boot-project/spring-boot/src/test/resources/logback-janino.xml index 569b18e17ccb..5274e6f9693e 100644 --- a/spring-boot-project/spring-boot/src/test/resources/logback-janino.xml +++ b/spring-boot-project/spring-boot/src/test/resources/logback-janino.xml @@ -13,6 +13,6 @@ - + diff --git a/spring-boot-project/spring-boot/src/test/resources/logback-nondefault.xml b/spring-boot-project/spring-boot/src/test/resources/logback-nondefault.xml index da5f24ea1b11..5d1622c51841 100644 --- a/spring-boot-project/spring-boot/src/test/resources/logback-nondefault.xml +++ b/spring-boot-project/spring-boot/src/test/resources/logback-nondefault.xml @@ -6,6 +6,6 @@ - + diff --git a/spring-boot-project/spring-boot/src/test/resources/logback-springprofile-in-root.xml b/spring-boot-project/spring-boot/src/test/resources/logback-springprofile-in-root.xml index ea07eb8bd007..284c547a0b32 100644 --- a/spring-boot-project/spring-boot/src/test/resources/logback-springprofile-in-root.xml +++ b/spring-boot-project/spring-boot/src/test/resources/logback-springprofile-in-root.xml @@ -7,7 +7,7 @@ - + diff --git a/spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/dockerTest/resources/logback.xml b/spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/dockerTest/resources/logback.xml index 7c402db9a3fa..13e689a29304 100644 --- a/spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/dockerTest/resources/logback.xml +++ b/spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/dockerTest/resources/logback.xml @@ -5,6 +5,6 @@ - + diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator-log4j2/src/main/resources/log4j2.xml b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator-log4j2/src/main/resources/log4j2.xml index 3f36c38809b5..1d9e0d83d980 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator-log4j2/src/main/resources/log4j2.xml +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator-log4j2/src/main/resources/log4j2.xml @@ -10,9 +10,9 @@ - - - + + + diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator/src/main/resources/logback.xml b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator/src/main/resources/logback.xml index 5c19b4eed630..613cb692a5e3 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator/src/main/resources/logback.xml +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator/src/main/resources/logback.xml @@ -1,7 +1,7 @@ - + - + diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-logback/src/main/resources/logback-spring.xml b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-logback/src/main/resources/logback-spring.xml index 0a8ee5a84673..baf8bc039fc1 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-logback/src/main/resources/logback-spring.xml +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-logback/src/main/resources/logback-spring.xml @@ -1,8 +1,8 @@ - - + + - +