From dd3c940aae0a8204ca84ce8ac4deb908ce61c137 Mon Sep 17 00:00:00 2001 From: John Blum Date: Wed, 6 Jul 2022 14:29:55 -0700 Subject: [PATCH] Integrate Spring Geode Logging with Spring Boot Logging and externalizes configuration. * Deprecates the logback-include.xml file. * Declare the logging context name as 'geodeLoggingContext'. * Determines whether Spring Boot SLF4J Logback logging configuration (metadata) files are present on the application classpath. * Applies custom logging configuration declared by the user in the spring-geode-logging.properties file on the application classpath. * Conditionally includes SLF4J Logback logging configuration from Spring Boot. * Includes Appenders, Loggers and Properties configuration metadata files from Spring Geode Starter Logging. Resolves #117. --- .../src/main/resources/logback-include.xml | 1 + .../src/main/resources/logback.xml | 24 +++++++++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/spring-geode-project/spring-geode-starters/spring-geode-starter-logging/src/main/resources/logback-include.xml b/spring-geode-project/spring-geode-starters/spring-geode-starter-logging/src/main/resources/logback-include.xml index 8f937515..a19b2f27 100644 --- a/spring-geode-project/spring-geode-starters/spring-geode-starter-logging/src/main/resources/logback-include.xml +++ b/spring-geode-project/spring-geode-starters/spring-geode-starter-logging/src/main/resources/logback-include.xml @@ -1,4 +1,5 @@ + diff --git a/spring-geode-project/spring-geode-starters/spring-geode-starter-logging/src/main/resources/logback.xml b/spring-geode-project/spring-geode-starters/spring-geode-starter-logging/src/main/resources/logback.xml index bb6685c9..2c5d6a5d 100644 --- a/spring-geode-project/spring-geode-starters/spring-geode-starter-logging/src/main/resources/logback.xml +++ b/spring-geode-project/spring-geode-starters/spring-geode-starter-logging/src/main/resources/logback.xml @@ -1,12 +1,32 @@ + geodeLoggingContext + - + + org/springframework/boot/logging/logback/defaults.xml + + + + + + + + + + + + + + + + + - +