From af64c30bcd7a590d3331f17ffa4a632d5abb09ef Mon Sep 17 00:00:00 2001 From: Bogumil Zebek Date: Thu, 14 Mar 2019 13:00:18 +0100 Subject: Remove unused code Change-Id: I6c84baf1d50f26b8ba49be671384257d2b34ab8f Issue-ID: DCAEGEN2-1016 Signed-off-by: Zebek Bogumil --- src/main/java/org/onap/dcae/common/VESLogger.java | 50 +---------------------- 1 file changed, 1 insertion(+), 49 deletions(-) (limited to 'src') 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"); - } - } -- cgit 1.2.3-korg