From 4481ccf9691d125dd8fb9c3bf799fdf072833211 Mon Sep 17 00:00:00 2001 From: jhh Date: Mon, 29 Jun 2020 09:54:06 -0500 Subject: upgrade eelf-core dependency: 1.0.0 -> 2.0.0-oss Issue-ID: POLICY-2387 Signed-off-by: jhh Change-Id: I837c2e958a388e8b6f2df2aff9f995359e44ad62 --- common-logging/pom.xml | 9 +++++++-- .../java/org/onap/policy/common/logging/eelf/MessageCodes.java | 4 ++-- .../java/org/onap/policy/common/logging/eelf/PolicyLogger.java | 8 ++++---- 3 files changed, 13 insertions(+), 8 deletions(-) (limited to 'common-logging') diff --git a/common-logging/pom.xml b/common-logging/pom.xml index d3e46d20..f4555698 100644 --- a/common-logging/pom.xml +++ b/common-logging/pom.xml @@ -49,7 +49,7 @@ com.att.eelf eelf-core - 1.0.1-oss + 2.0.0-oss org.powermock @@ -71,6 +71,11 @@ powermock-api-mockito2 test + + junit + junit + test + @@ -114,7 +119,7 @@ com.att.eelf eelf-maven-plugin - 0.0.1 + 2.0.0-oss install diff --git a/common-logging/src/main/java/org/onap/policy/common/logging/eelf/MessageCodes.java b/common-logging/src/main/java/org/onap/policy/common/logging/eelf/MessageCodes.java index 9116051b..629ead82 100644 --- a/common-logging/src/main/java/org/onap/policy/common/logging/eelf/MessageCodes.java +++ b/common-logging/src/main/java/org/onap/policy/common/logging/eelf/MessageCodes.java @@ -20,13 +20,13 @@ package org.onap.policy.common.logging.eelf; -import com.att.eelf.i18n.EELFResolvableErrorEnum; +import com.att.eelf.i18n.EELFResolvableResourceEnum; import com.att.eelf.i18n.EELFResourceManager; /** * MessageCodes contains all the messagge codes for EELF logging messages. */ -public enum MessageCodes implements EELFResolvableErrorEnum { +public enum MessageCodes implements EELFResolvableResourceEnum { // Below is a list of Error Messages taken from com.att.research.xacml.api XACMLErrorConstants // found under: // policy-engine\XACML\src\main\java\com\att\research\xacml\api\XACMLErrorConstants.java diff --git a/common-logging/src/main/java/org/onap/policy/common/logging/eelf/PolicyLogger.java b/common-logging/src/main/java/org/onap/policy/common/logging/eelf/PolicyLogger.java index 870e63aa..1d95f1fd 100644 --- a/common-logging/src/main/java/org/onap/policy/common/logging/eelf/PolicyLogger.java +++ b/common-logging/src/main/java/org/onap/policy/common/logging/eelf/PolicyLogger.java @@ -71,13 +71,13 @@ import org.slf4j.MDC; */ public class PolicyLogger { - private static EELFLogger errorLogger = EELFManager.getInstance().getErrorLogger(); + private static EELFLogger errorLogger = EELFManager.getErrorLogger(); - private static EELFLogger metricsLogger = EELFManager.getInstance().getMetricsLogger(); + private static EELFLogger metricsLogger = EELFManager.getMetricsLogger(); - private static EELFLogger auditLogger = EELFManager.getInstance().getAuditLogger(); + private static EELFLogger auditLogger = EELFManager.getAuditLogger(); - private static EELFLogger debugLogger = EELFManager.getInstance().getDebugLogger(); + private static EELFLogger debugLogger = EELFManager.getDebugLogger(); private static final String POLICY_LOGGER = "PolicyLogger"; -- cgit 1.2.3-korg