diff options
Diffstat (limited to 'common-app-api/src/main/java/org/openecomp/sdc/common/ecomplogwrapper/EcompLoggerSdcDebug.java')
-rw-r--r-- | common-app-api/src/main/java/org/openecomp/sdc/common/ecomplogwrapper/EcompLoggerSdcDebug.java | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/ecomplogwrapper/EcompLoggerSdcDebug.java b/common-app-api/src/main/java/org/openecomp/sdc/common/ecomplogwrapper/EcompLoggerSdcDebug.java deleted file mode 100644 index 57e9e8c5a0..0000000000 --- a/common-app-api/src/main/java/org/openecomp/sdc/common/ecomplogwrapper/EcompLoggerSdcDebug.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.openecomp.sdc.common.ecomplogwrapper; - -import java.util.Arrays; - -import org.openecomp.sdc.common.ecomplog.EcompLoggerDebug; -import org.openecomp.sdc.common.ecomplog.Enums.LogLevel; - -public class EcompLoggerSdcDebug { - - public void log(LogLevel errorLevel, - String uuid, - String message, - Exception ex) { - - StringBuilder stackTrack = new StringBuilder(); - Arrays.asList(ex.getStackTrace()).forEach(item -> stackTrack.append(item.toString()).append("\n")); - - EcompLoggerDebug.getInstance() - .clear() - .startTimer() - .setKeyRequestId(uuid) - .log(errorLevel, String.format("%s %s", message, stackTrack.toString())); - } - - public void log(LogLevel errorLevel, - String uuid, - String message) { - - EcompLoggerDebug.getInstance() - .clear() - .startTimer() - .setKeyRequestId(uuid) - .log(errorLevel, message); - } -} |