diff options
author | Tony Hansen <tony@att.com> | 2019-03-19 15:37:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-19 15:37:02 +0000 |
commit | c2965c87eb32755b9f28cb714c7059e6e7b52520 (patch) | |
tree | 402455db8c4df45447b501f72951c42b46b998e1 /src/main | |
parent | 3158b556147e30fc53fe4e524e2dffb0aeb1052d (diff) | |
parent | af64c30bcd7a590d3331f17ffa4a632d5abb09ef (diff) |
Merge "Remove unused code"
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/onap/dcae/common/VESLogger.java | 50 |
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"); - } - } |