From 881bce2a27025269e39eeabbdc0bc2ca2789b484 Mon Sep 17 00:00:00 2001 From: John Blum Date: Mon, 13 May 2019 16:43:38 -0700 Subject: [PATCH] Add logging configuration for JUL, Log4j2 and SLF4J using Logback. --- .../resources/java-util-logging.properties | 8 +++++ .../src/test/resources/log4j2-test.xml | 21 +++++++++++ .../src/test/resources/logback.xml | 36 +++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 spring-data-geode-test/src/test/resources/java-util-logging.properties create mode 100644 spring-data-geode-test/src/test/resources/log4j2-test.xml create mode 100644 spring-data-geode-test/src/test/resources/logback.xml diff --git a/spring-data-geode-test/src/test/resources/java-util-logging.properties b/spring-data-geode-test/src/test/resources/java-util-logging.properties new file mode 100644 index 0000000..37ccf2c --- /dev/null +++ b/spring-data-geode-test/src/test/resources/java-util-logging.properties @@ -0,0 +1,8 @@ +# java.util.logging (JUL) configuration + +org.apache=ERROR +org.springframework=ERROR +org.springframework.data.gemfire.listener.adapter.ContinuousQueryListenerAdapter=OFF +org.springframework.data.gemfire.listener.adapter.ContinuousQueryListenerAdapter.useParentHandlers=false +org.springframework.data.gemfire.support.SpringContextBootstrappingInitializer=OFF +org.springframework.data.gemfire.support.SpringContextBootstrappingInitializer.useParentHandlers=false diff --git a/spring-data-geode-test/src/test/resources/log4j2-test.xml b/spring-data-geode-test/src/test/resources/log4j2-test.xml new file mode 100644 index 0000000..8ab87c1 --- /dev/null +++ b/spring-data-geode-test/src/test/resources/log4j2-test.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/spring-data-geode-test/src/test/resources/logback.xml b/spring-data-geode-test/src/test/resources/logback.xml new file mode 100644 index 0000000..4d64c87 --- /dev/null +++ b/spring-data-geode-test/src/test/resources/logback.xml @@ -0,0 +1,36 @@ + + + + + + + + %d %5p %40.40c:%4L - %m%n + + + + + + + + TEST - %m%n + + + + + + + + + + + + + + + + + + + +