aboutsummaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main/java/org/openecomp/sdc/common/log/api
diff options
context:
space:
mode:
Diffstat (limited to 'common-app-api/src/main/java/org/openecomp/sdc/common/log/api')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/log/api/ILogConfiguration.java53
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/log/api/ILogFieldsHandler.java131
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/log/api/ILogger.java44
3 files changed, 0 insertions, 228 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/log/api/ILogConfiguration.java b/common-app-api/src/main/java/org/openecomp/sdc/common/log/api/ILogConfiguration.java
deleted file mode 100644
index 56fd7ad3a1..0000000000
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/log/api/ILogConfiguration.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.sdc.common.log.api;
-
-public interface ILogConfiguration {
- String MDC_KEY_REQUEST_ID = "RequestId";
- String MDC_SERVICE_INSTANCE_ID = "ServiceInstanceId";
- String MDC_SERVICE_NAME = "ServiceName";
- String MDC_INSTANCE_UUID = "InstanceUUID";
- String MDC_SERVER_IP_ADDRESS = "ServerIPAddress";
- String MDC_SERVER_FQDN = "ServerFQDN";
- String MDC_REMOTE_HOST = "RemoteHost";
- String MDC_AUDIT_MESSAGE = "AuditMessage";
- String MDC_ALERT_SEVERITY = "AlertSeverity";
- String MDC_AUDIT_BEGIN_TIMESTAMP = "AuditBeginTimestamp";
- String MDC_METRIC_BEGIN_TIMESTAMP = "MetricBeginTimestamp";
- String MDC_END_TIMESTAMP = "EndTimestamp";
- String MDC_PARTNER_NAME = "PartnerName";
- String MDC_STATUS_CODE = "StatusCode";
- String MDC_RESPONSE_CODE = "ResponseCode";
- String MDC_RESPONSE_DESC = "ResponseDescription";
- String MDC_ELAPSED_TIME = "ElapsedTime";
- String MDC_PROCESS_KEY = "ProcessKey";
- String MDC_TARGET_ENTITY = "TargetEntity";
- String MDC_TARGET_SERVICE_NAME = "TargetServiceName";
- String MDC_TARGET_VIRTUAL_ENTITY = "TargetVirtualEntity";
- String MDC_ERROR_CATEGORY = "ErrorCategory";
- String MDC_ERROR_CODE = "ErrorCode";
- String MDC_ERROR_DESC = "ErrorDescription";
- String MDC_CLASS_NAME = "ClassName";
- String MDC_OPT_FIELD1 = "CustomField1";
- String MDC_OPT_FIELD2 = "CustomField2";
- String MDC_OPT_FIELD3 = "CustomField3";
- String MDC_OPT_FIELD4 = "CustomField4";
-}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/log/api/ILogFieldsHandler.java b/common-app-api/src/main/java/org/openecomp/sdc/common/log/api/ILogFieldsHandler.java
deleted file mode 100644
index 5b9728a6da..0000000000
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/log/api/ILogFieldsHandler.java
+++ /dev/null
@@ -1,131 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.sdc.common.log.api;
-
-import org.openecomp.sdc.common.log.enums.Severity;
-
-/**
- * Created by dd4296 on 12/25/2017.
- */
-public interface ILogFieldsHandler {
- void startAuditTimer();
-
- void startMetricTimer();
-
- void stopAuditTimer();
-
- void stopMetricTimer();
-
- void setClassName(String className);
-
- void setServerFQDN(String serverFQDN);
-
- void setServerIPAddress(String serverIPAddress);
-
- // intended for setting this parameter in a given thread
- void setServerFQDNInternally();
-
- // intended for setting this parameter in a given thread
- void setServerIPAddressInternally();
-
- void setInstanceUUID(String instanceUUID);
-
- void setProcessKey(String processKey);
-
- void setAlertSeverity(Severity alertSeverity);
-
- void setOptCustomField1(String customField1);
-
- void setOptCustomField2(String customField2);
-
- void setOptCustomField3(String customField3);
-
- void setOptCustomField4(String customField4);
-
- void setKeyRequestId(String keyRequestId);
-
- void setRemoteHost(String remoteHost);
-
- void setServiceName(String serviceName);
-
- void setStatusCode(String statusCode);
-
- void setPartnerName(String partnerName);
-
- void setResponseCode(int responseCode);
-
- void setResponseDesc(String responseDesc);
-
- void setServiceInstanceId(String serviceInstanceId);
-
- void setTargetEntity(String targetEntity);
-
- void setTargetServiceName(String targetServiceName);
-
- void setTargetVirtualEntity(String targetVirtualEntity);
-
- void setErrorCode(int errorCode);
-
- void setErrorCategory(String errorCategory);
-
- String getErrorCode();
-
- String getServiceName();
-
- String getErrorCategory();
-
- void clear();
-
- boolean isMDCParamEmpty(String mdcKeyName);
-
- String getFqdn();
-
- String getHostAddress();
-
- String getKeyRequestId();
-
- void removeStatusCode();
-
- void removePartnerName();
-
- void removeResponseCode();
-
- void removeResponseDesc();
-
- void removeServiceInstanceId();
-
- void removeTargetEntity();
-
- void removeTargetServiceName();
-
- void removeTargetVirtualEntity();
-
- void removeErrorCode();
-
- void removeErrorCategory();
-
- void removeErrorDescription();
-
- void setAuditMessage(String message);
-
- String getAuditMessage();
-
-}
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/log/api/ILogger.java b/common-app-api/src/main/java/org/openecomp/sdc/common/log/api/ILogger.java
deleted file mode 100644
index 175e7ec016..0000000000
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/log/api/ILogger.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.sdc.common.log.api;
-
-import org.openecomp.sdc.common.log.enums.LogLevel;
-
-import java.util.List;
-
-/**
- * Created by dd4296 on 12/24/2017.
- */
-public interface ILogger {
- void log(LogLevel logLevel, String message);
-
- void log(LogLevel logLevel, String message, Object... params);
-
- void log(LogLevel logLevel, String message, Throwable throwable);
-
- List<String> getMandatoryFields();
-
- ILogger clear();
-
- ILogger startTimer();
-
- ILogger setKeyRequestId(String keyRequestId);
-}