aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogumil Zebek <bogumil.zebek@nokia.com>2019-03-14 13:00:18 +0100
committerZebek Bogumil <bogumil.zebek@nokia.com>2019-03-14 13:00:18 +0100
commitaf64c30bcd7a590d3331f17ffa4a632d5abb09ef (patch)
tree295c6a7fa4cffbf91dbe96bebbebefb6e62f57ae
parent038e80074e8ad5f466690aef436034fcda0eeab3 (diff)
Remove unused code
Change-Id: I6c84baf1d50f26b8ba49be671384257d2b34ab8f Issue-ID: DCAEGEN2-1016 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
-rw-r--r--src/main/java/org/onap/dcae/common/VESLogger.java50
1 files changed, 1 insertions, 49 deletions
diff --git a/src/main/java/org/onap/dcae/common/VESLogger.java b/src/main/java/org/onap/dcae/common/VESLogger.java
index c7354502..79681484 100644
--- a/src/main/java/org/onap/dcae/common/VESLogger.java
+++ b/src/main/java/org/onap/dcae/common/VESLogger.java
@@ -35,21 +35,13 @@ import java.util.UUID;
public class VESLogger {
- public static final String VES_AGENT = "VES_AGENT";
- public static final String REQUEST_ID = "requestId";
- private static final String IP_ADDRESS = "127.0.0.1";
- private static final String HOST_NAME = "localhost";
- public static Logger auditLog;
- public static Logger metricsLog;
- public static Logger errorLog;
- public static Logger debugLog;
+ public static final String REQUEST_ID = "requestId";
// Common LoggingContext
private static LoggingContext commonLC;
// Thread-specific LoggingContext
private static LoggingContext threadLC;
- public LoggingContext lc;
/**
* Returns the common LoggingContext instance that is the base context for
@@ -117,44 +109,4 @@ public class VESLogger {
return threadLC;
}
- public static void setUpEcompLogging() {
-
- // Create ECOMP Logger instances
- auditLog = LoggerFactory.getLogger("com.att.ecomp.audit");
- metricsLog = LoggerFactory.getLogger("com.att.ecomp.metrics");
- debugLog = LoggerFactory.getLogger("com.att.ecomp.debug");
- errorLog = LoggerFactory.getLogger("com.att.ecomp.error");
-
- final LoggingContext lc = getCommonLoggingContext();
-
- String ipAddr = IP_ADDRESS;
- String hostname = HOST_NAME;
- try {
- final InetAddress ip = InetAddress.getLocalHost();
- hostname = ip.getCanonicalHostName();
- ipAddr = ip.getHostAddress();
- } catch (UnknownHostException x) {
- Log.debug(x.getMessage());
- }
-
- lc.put("serverName", hostname);
- lc.put("serviceName", "VESCollecor");
- lc.put("statusCode", "RUNNING");
- lc.put("targetEntity", "NULL");
- lc.put("targetServiceName", "NULL");
- lc.put("server", hostname);
- lc.put("serverIpAddress", ipAddr);
-
- // instance UUID is meaningless here, so we just create a new one each
- // time the
- // server starts. One could argue each new instantiation of the service
- // should
- // have a new instance ID.
- lc.put("instanceUuid", "");
- lc.put("severity", "");
- lc.put(EcompFields.kEndTimestamp, SaClock.now());
- lc.put("EndTimestamp", SaClock.now());
- lc.put("partnerName", "NA");
- }
-
}