summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2021-08-04 09:30:11 -0400
committerTaka Cho <takamune.cho@att.com>2021-08-04 09:31:56 -0400
commita8590fdd6f7a5360cfaf505418880f6076c0c867 (patch)
tree967dd639fc251217126bc8390905e076b8fbafe5
parent04aa1493214af37c1a50c6d83bd7f32d7708487d (diff)
refactor slf4j logger to common util
avoid EELF lib dependency, was suggested to move to common util instead Issue-ID: POLICY-3087 Change-Id: I79a2f5ba32fd3fc496ef3f72a02f4696b766f9c7 Signed-off-by: Taka Cho <takamune.cho@att.com>
-rw-r--r--utils/pom.xml1
-rw-r--r--utils/src/main/java/org/onap/policy/common/utils/logging/LoggerMarkerFilter.java (renamed from common-logging/src/main/java/org/onap/policy/common/logging/LoggerMarkerFilter.java)2
-rw-r--r--utils/src/main/java/org/onap/policy/common/utils/logging/LoggerUtils.java (renamed from common-logging/src/main/java/org/onap/policy/common/logging/LoggerUtils.java)2
-rw-r--r--utils/src/test/java/org/onap/policy/common/utils/logging/LoggerUtilsTest.java (renamed from common-logging/src/test/java/org/onap/policy/common/logging/LoggerUtilsTest.java)2
4 files changed, 3 insertions, 4 deletions
diff --git a/utils/pom.xml b/utils/pom.xml
index 03cc766a..f2ca4e89 100644
--- a/utils/pom.xml
+++ b/utils/pom.xml
@@ -82,7 +82,6 @@
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
- <scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
diff --git a/common-logging/src/main/java/org/onap/policy/common/logging/LoggerMarkerFilter.java b/utils/src/main/java/org/onap/policy/common/utils/logging/LoggerMarkerFilter.java
index 7fc4ddca..90a7c8a1 100644
--- a/common-logging/src/main/java/org/onap/policy/common/logging/LoggerMarkerFilter.java
+++ b/utils/src/main/java/org/onap/policy/common/utils/logging/LoggerMarkerFilter.java
@@ -20,7 +20,7 @@
*
*/
-package org.onap.policy.common.logging;
+package org.onap.policy.common.utils.logging;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.filter.AbstractMatcherFilter;
diff --git a/common-logging/src/main/java/org/onap/policy/common/logging/LoggerUtils.java b/utils/src/main/java/org/onap/policy/common/utils/logging/LoggerUtils.java
index 298bd531..9276f749 100644
--- a/common-logging/src/main/java/org/onap/policy/common/logging/LoggerUtils.java
+++ b/utils/src/main/java/org/onap/policy/common/utils/logging/LoggerUtils.java
@@ -20,7 +20,7 @@
*
*/
-package org.onap.policy.common.logging;
+package org.onap.policy.common.utils.logging;
import ch.qos.logback.classic.LoggerContext;
import org.slf4j.Logger;
diff --git a/common-logging/src/test/java/org/onap/policy/common/logging/LoggerUtilsTest.java b/utils/src/test/java/org/onap/policy/common/utils/logging/LoggerUtilsTest.java
index 84e63b64..61b83b4c 100644
--- a/common-logging/src/test/java/org/onap/policy/common/logging/LoggerUtilsTest.java
+++ b/utils/src/test/java/org/onap/policy/common/utils/logging/LoggerUtilsTest.java
@@ -20,7 +20,7 @@
*
*/
-package org.onap.policy.common.logging;
+package org.onap.policy.common.utils.logging;
import static org.junit.Assert.assertTrue;