From e70767c0e6262b431d62fe6c8f72e4eba4775f8f Mon Sep 17 00:00:00 2001 From: Pavithra Date: Thu, 20 Feb 2020 10:27:56 +0000 Subject: Implemented handlers for audit metrics error logs Initial Changes. Issue-ID: PORTAL-218 Change-Id: Icf97d13a6c683b8f09491491ed2d2709f5500205 Signed-off-by: Pavithra --- .../onap/portalsdk/core/logging/logic/EELFLoggerDelegate.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'ecomp-sdk') diff --git a/ecomp-sdk/epsdk-logger/src/main/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegate.java b/ecomp-sdk/epsdk-logger/src/main/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegate.java index a67b979b..5632534a 100644 --- a/ecomp-sdk/epsdk-logger/src/main/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegate.java +++ b/ecomp-sdk/epsdk-logger/src/main/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegate.java @@ -66,10 +66,13 @@ import com.att.eelf.configuration.SLF4jWrapper; public class EELFLoggerDelegate extends SLF4jWrapper implements EELFLogger { - public static final EELFLogger errorLogger = EELFManager.getInstance().getErrorLogger(); + //public static final EELFLogger errorLogger = EELFManager.getInstance().getErrorLogger(); + public static final EELFLogger errorLogger = EELFManager.getInstance().getLogger("EELFError"); + public static final EELFLogger metricsLogger = EELFManager.getInstance().getLogger("EELFMetrics"); + public static final EELFLogger auditLogger = EELFManager.getInstance().getLogger("EELFAudit"); public static final EELFLogger applicationLogger = EELFManager.getInstance().getApplicationLogger(); - public static final EELFLogger auditLogger = EELFManager.getInstance().getAuditLogger(); - public static final EELFLogger metricsLogger = EELFManager.getInstance().getMetricsLogger(); + //public static final EELFLogger auditLogger = EELFManager.getInstance().getAuditLogger(); + //public static final EELFLogger metricsLogger = EELFManager.getInstance().getMetricsLogger(); public static final EELFLogger debugLogger = EELFManager.getInstance().getDebugLogger(); // DateTime Format according to the ECOMP Application Logging Guidelines. private static final SimpleDateFormat ecompLogDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSXXX"); @@ -520,4 +523,4 @@ public class EELFLoggerDelegate extends SLF4jWrapper implements EELFLogger { } return ""; } -} \ No newline at end of file +} -- cgit 1.2.3-korg