Implemented handlers for audit metrics error logs 64/102064/1
authorPavithra <pm00552221@techmahindra.com>
Thu, 20 Feb 2020 10:27:56 +0000 (10:27 +0000)
committerPavithra <pm00552221@techmahindra.com>
Thu, 20 Feb 2020 11:17:42 +0000 (11:17 +0000)
Initial Changes. Issue-ID: PORTAL-218

Change-Id: Icf97d13a6c683b8f09491491ed2d2709f5500205
Signed-off-by: Pavithra <pm00552221@techmahindra.com>
ecomp-sdk/epsdk-logger/src/main/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegate.java

index a67b979..5632534 100644 (file)
@@ -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
+}