From 85d630c34e34a7b995fdfbfce7e783acfbc6ae66 Mon Sep 17 00:00:00 2001 From: John Blum Date: Fri, 7 Feb 2020 17:02:57 -0800 Subject: [PATCH] Refactor the 'spring-geode-starter-logging' module provided logback.xml file to use templates (includes). Moved the declared Appenders and Loggers from logback.xml to a new logback-include.xml file making it easier to compose Logback (XML) configuration files using templates, or includes. This is particularly useful during Integration Testing where logback-test.xml files can be composed with different templates/includes. Resolves gh-73. --- .../src/main/resources/logback-include.xml | 16 ++++++++++++++++ .../src/main/resources/logback.xml | 11 ++--------- 2 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 spring-geode-starter-logging/src/main/resources/logback-include.xml diff --git a/spring-geode-starter-logging/src/main/resources/logback-include.xml b/spring-geode-starter-logging/src/main/resources/logback-include.xml new file mode 100644 index 00000000..8f937515 --- /dev/null +++ b/spring-geode-starter-logging/src/main/resources/logback-include.xml @@ -0,0 +1,16 @@ + + + + + + %d %5p %40.40c:%4L - %m%n + + + + + + + + + + diff --git a/spring-geode-starter-logging/src/main/resources/logback.xml b/spring-geode-starter-logging/src/main/resources/logback.xml index 2cb19707..e0467d6a 100644 --- a/spring-geode-starter-logging/src/main/resources/logback.xml +++ b/spring-geode-starter-logging/src/main/resources/logback.xml @@ -3,18 +3,11 @@ - - - %d %5p %40.40c:%4L - %m%n - - - - - - + +