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;
}
'IT > java' 카테고리의 다른 글
DTO 등을 만들었는데 json write 시에 에러가 난다고? (0) | 2019.10.02 |
---|---|
openjdk.. and remove oracle java in osx (0) | 2019.04.26 |
lambda map 만 썼을때 주의... (0) | 2017.09.27 |
chaining ..체이닝 체인 구성... 구현형태 확장 형태 extends 포함 (0) | 2017.09.15 |
Arrays.asList ... clear remove, UnsupportedOperationException ... (0) | 2017.09.14 |