From c023a2245583461f77ad598f1958df0ce2d8bd93 Mon Sep 17 00:00:00 2001 From: John Blum Date: Fri, 7 Feb 2020 13:23:05 -0800 Subject: [PATCH] Add new 'spring-geode-starter-logging' and 'spring-gemfire-starter-logging' modules. The new modules enable logging output to be rendered for both Apache Geode & Pivotal GemFire given the right configuration now that the SDG @EnableLogging annotaiton is effectively deprecated since the corresponding GemFire/Geode properties (i.e. gemfire.log-level) no longer have any effect. Resolves gh-73. --- settings.gradle | 1 + .../spring-gemfire-starter-logging.gradle | 10 ++++++++++ .../spring-geode-starter-logging.gradle | 11 ++++++++++ .../src/main/resources/logback.xml | 20 +++++++++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 spring-gemfire-starter-logging/spring-gemfire-starter-logging.gradle create mode 100644 spring-geode-starter-logging/spring-geode-starter-logging.gradle create mode 100644 spring-geode-starter-logging/src/main/resources/logback.xml diff --git a/settings.gradle b/settings.gradle index c1f8751e..84aa0c12 100644 --- a/settings.gradle +++ b/settings.gradle @@ -32,4 +32,5 @@ buildFiles.each { File buildFile -> project.buildFileName = buildFile.name } } +include 'spring-gemfire-starter-logging' diff --git a/spring-gemfire-starter-logging/spring-gemfire-starter-logging.gradle b/spring-gemfire-starter-logging/spring-gemfire-starter-logging.gradle new file mode 100644 index 00000000..afe6d363 --- /dev/null +++ b/spring-gemfire-starter-logging/spring-gemfire-starter-logging.gradle @@ -0,0 +1,10 @@ +apply plugin: 'io.spring.convention.spring-module' +apply from: MAVEN_POM_EDITOR_GRADLE + +description = "Spring Boot Logging Starter for Pivotal GemFire with Logback as the logging provider and adaptation of Log4j to SLF4J" + +dependencies { + + compile project(":spring-geode-starter-logging") + +} diff --git a/spring-geode-starter-logging/spring-geode-starter-logging.gradle b/spring-geode-starter-logging/spring-geode-starter-logging.gradle new file mode 100644 index 00000000..86d1851e --- /dev/null +++ b/spring-geode-starter-logging/spring-geode-starter-logging.gradle @@ -0,0 +1,11 @@ +apply plugin: 'io.spring.convention.spring-module' +apply from: MAVEN_POM_EDITOR_GRADLE + +description = "Spring Boot Logging Starter for Apache Geode with Logback as the logging provider and adaptation of Log4j to SLF4J" + +dependencies { + + compile "org.apache.logging.log4j:log4j-to-slf4j" + compile "org.springframework.boot:spring-boot-starter-logging" + +} diff --git a/spring-geode-starter-logging/src/main/resources/logback.xml b/spring-geode-starter-logging/src/main/resources/logback.xml new file mode 100644 index 00000000..2cb19707 --- /dev/null +++ b/spring-geode-starter-logging/src/main/resources/logback.xml @@ -0,0 +1,20 @@ + + + + + + + + %d %5p %40.40c:%4L - %m%n + + + + + + + + + + + +