public static String informTrace() {

        String trace = "";
        try {
            StackTraceElement[] stackTrace = new Throwable().getStackTrace();
            for (StackTraceElement stackTraceElement : stackTrace) {
//            System.out.println("print::"+stackTraceElement.getClassName()+"/"+stackTraceElement.getMethodName()+"/"+stackTraceElement.getLineNumber());
                trace += stackTraceElement.getMethodName() + "<-";
            }
        } catch (Exception e) {
            LOGGER.warn("ignore traceUtil...");
        }

        return trace;
    }

 

+ Recent posts