code: public void logStackTrace() {
      if (enabled) {
        Throwable t = new Throwable();
        t.fillInStackTrace();
        StackTraceElement[] ste_arr = t.getStackTrace();
        for (int ii = 2; ii < ste_arr.length; ii++) {
          StackTraceElement ste = ste_arr[ii];
          System.out.printf("%s  %s%n", getIndentString(), ste);
        }
      }
    }
docs: Print a stack trace to System.out.