From 7e301c51f2beb545a2920decafb1ced6320a438a 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 | 23 +++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/spring-geode-starter-logging/src/main/resources/logback-include.xml b/spring-geode-starter-logging/src/main/resources/logback-include.xml index 8f937515..a19b2f27 100644 --- a/spring-geode-starter-logging/src/main/resources/logback-include.xml +++ b/spring-geode-starter-logging/src/main/resources/logback-include.xml @@ -1,4 +1,5 @@ + diff --git a/spring-geode-starter-logging/src/main/resources/logback.xml b/spring-geode-starter-logging/src/main/resources/logback.xml index bb6685c9..0d5dff6b 100644 --- a/spring-geode-starter-logging/src/main/resources/logback.xml +++ b/spring-geode-starter-logging/src/main/resources/logback.xml @@ -1,12 +1,31 @@ + geodeLoggingContext + - + + org/springframework/boot/logging/logback/defaults.xml + + + + + + + + + + + + + + + + - +