String className = this.getClass().getName(); // 包含報名,getSimpleName()爲僅獲取名稱
String methodName = new Exception().getStackTrace()[0].getMethodName();
String msg = String.format("Invoke className: %s, methodName: %s", className, methodName);
System.out.println(msg);