aboutsummaryrefslogtreecommitdiffstats
path: root/epsdk-app-onap
diff options
context:
space:
mode:
authorEylon Malin <eylon.malin@intl.att.com>2019-10-24 14:36:42 +0300
committerEylon Malin <eylon.malin@intl.att.com>2019-10-24 14:55:54 +0300
commit67f6ab5e1c890fcb636e78fcd5b9502746e6a794 (patch)
tree21623acc5368690cc21687285dce4ae9cc1660dd /epsdk-app-onap
parent32d04d886b60649fe036b335745cbd5fab4898b1 (diff)
log VID is started on startup
Issue-ID: VID-253 Logging api tests use this indication for getting only relevant log lines Change-Id: I3cb829ab5a0f3cead3db50859da2ba12df75a971 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Diffstat (limited to 'epsdk-app-onap')
-rw-r--r--epsdk-app-onap/src/main/java/org/onap/portalapp/conf/ExternalAppInitializer.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/epsdk-app-onap/src/main/java/org/onap/portalapp/conf/ExternalAppInitializer.java b/epsdk-app-onap/src/main/java/org/onap/portalapp/conf/ExternalAppInitializer.java
index 2c6fcea9d..e4386c150 100644
--- a/epsdk-app-onap/src/main/java/org/onap/portalapp/conf/ExternalAppInitializer.java
+++ b/epsdk-app-onap/src/main/java/org/onap/portalapp/conf/ExternalAppInitializer.java
@@ -37,11 +37,16 @@
*/
package org.onap.portalapp.conf;
+import static org.onap.vid.controller.LoggerController.VID_IS_STARTED;
+
import java.util.TimeZone;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
+import org.onap.logging.filter.base.AbstractAuditLogFilter;
+import org.onap.logging.filter.base.AbstractMetricLogFilter;
import org.onap.portalsdk.core.conf.AppInitializer;
import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate;
+import org.slf4j.LoggerFactory;
public class ExternalAppInitializer extends AppInitializer {
@@ -60,6 +65,13 @@ public class ExternalAppInitializer extends AppInitializer {
super.onStartup(servletContext);
setDefaultTimeZoneToUTC();
setPartnerName();
+ logVidIsStarted();
+ }
+
+ //mark in logs that vid is started.
+ private void logVidIsStarted() {
+ LoggerFactory.getLogger(AbstractMetricLogFilter.class).info(VID_IS_STARTED);
+ LoggerFactory.getLogger(AbstractAuditLogFilter.class).info(VID_IS_STARTED);
}
private void setPartnerName() {