summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-logger
diff options
context:
space:
mode:
authorPavithra <pm00552221@techmahindra.com>2020-02-20 10:27:56 +0000
committerPavithra <pm00552221@techmahindra.com>2020-02-20 11:17:42 +0000
commite70767c0e6262b431d62fe6c8f72e4eba4775f8f (patch)
treededd7d95c5c63d5bf350fc616acdaebd9eb2c98d /ecomp-sdk/epsdk-logger
parent4a0d5a9fb73d3095d149d6e9d7c5fda0e39ed666 (diff)
Implemented handlers for audit metrics error logs
Initial Changes. Issue-ID: PORTAL-218 Change-Id: Icf97d13a6c683b8f09491491ed2d2709f5500205 Signed-off-by: Pavithra <pm00552221@techmahindra.com>
Diffstat (limited to 'ecomp-sdk/epsdk-logger')
-rw-r--r--ecomp-sdk/epsdk-logger/src/main/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegate.java11
1 files changed, 7 insertions, 4 deletions
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
+}