From c726f1d6558025e94a8f691f1b1cf66a34494515 Mon Sep 17 00:00:00 2001 From: William Cekan Date: Tue, 28 Jan 2020 12:49:22 -0600 Subject: [PATCH] Send INFO to Console, TRACE to trace.log (#1173) --- .../com/yahoo/elide/core/LifeCycleTest.java | 7 ------- elide-core/src/test/resources/logback.xml | 18 +++++++++++++++++- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/elide-core/src/test/java/com/yahoo/elide/core/LifeCycleTest.java b/elide-core/src/test/java/com/yahoo/elide/core/LifeCycleTest.java index b3abd54ca5..d4cdccefbf 100644 --- a/elide-core/src/test/java/com/yahoo/elide/core/LifeCycleTest.java +++ b/elide-core/src/test/java/com/yahoo/elide/core/LifeCycleTest.java @@ -61,10 +61,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.slf4j.LoggerFactory; - -import ch.qos.logback.classic.Level; -import ch.qos.logback.classic.Logger; import java.util.Arrays; import java.util.HashMap; @@ -139,9 +135,6 @@ public Class lookupBoundClass(Class objClass) { dictionary.bindTrigger(Book.class, OnUpdatePreSecurity.class, onUpdateImmediateCallback, true); dictionary.bindTrigger(Book.class, OnUpdatePostCommit.class, onUpdatePostCommitCallback, true); dictionary.bindTrigger(Author.class, OnUpdatePostCommit.class, onUpdatePostCommitAuthor, true); - // enable trace - Logger rootLogger = (Logger) LoggerFactory.getILoggerFactory().getLogger(Logger.ROOT_LOGGER_NAME); - rootLogger.setLevel(Level.TRACE); } @BeforeEach diff --git a/elide-core/src/test/resources/logback.xml b/elide-core/src/test/resources/logback.xml index 64f6e93ed6..aca4d9eca0 100644 --- a/elide-core/src/test/resources/logback.xml +++ b/elide-core/src/test/resources/logback.xml @@ -6,14 +6,30 @@ --> + + INFO + %msg%n + + target/trace.log + false + + %msg%n + + + + + true + - + +